12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHA00600.xrw
- * 설 명 : 비자건진예약/접수
- * 설 계 자 : 손주연
- * 작 성 자 : 손주연
- * 작 성 일 : 2007.06.13
- * 수정이력 : 김다영
- 조두현 2008.01.10 추가요구사항 등록
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>VISA등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <rsrvlst>
- <hopedd/>
- <pid/>
- <engnm/>
- <pnm/>
- <brthareacnts/>
- <pkgcd/>
- <pkgnm/>
- <rgstno1/>
- <rgstno2/>
- <sexage/>
- <statflag/>
- <rsrvdd/>
- <rsrvno/>
- <rcptstat/>
- <visano/>
- <totamt/>
- <cmpynm/>
- <rsrvdttm/>
- <lastupdtrid/>
- <lastupdtdt/>
- <engnm2/>
- </rsrvlst>
- <reexlst>
- <hopedd/>
- <pid/>
- <engnm/>
- <pnm/>
- <brthareacnts/>
- <pkgcd/>
- <pkgnm/>
- <rgstno1/>
- <rgstno2/>
- <sexage/>
- <statflag/>
- <rsrvdd/>
- <rsrvno/>
- <rcptstat/>
- <visano/>
- <totamt/>
- <cmpynm/>
- <rsrvdttm/>
- <lastupdtrid/>
- <lastupdtdt/>
- </reexlst>
- <acptlst>
- <orddd/>
- <pid/>
- <visano/>
- <engnm/>
- <pnm/>
- <brthareacnts/>
- <pkgcd/>
- <pkgnm/>
- <rgstno1/>
- <rgstno2/>
- <sexage/>
- <rcptstat/>
- <rsrvdd/>
- <rsrvno/>
- <statflag/>
- <acptflag/>
- <cmpynm/>
- <acptdttm/>
- <lastupdtrid/>
- <lastupdtdt/>
- </acptlst>
- <cncllst>
- <cncldd/>
- <pid/>
- <engnm/>
- <brthareacnts/>
- <pkgcd/>
- <pkgnm/>
- <rgstno1/>
- <rgstno2/>
- <sexage/>
- <rsrvdd/>
- <rsrvno/>
- <statflag/>
- <rcptstat/>
- <visano/>
- <pnm/>
- <cmpynm/>
- <cncldttm/>
- <lastupdtrid/>
- <lastupdtdt/>
- </cncllst>
- <listinfo>
- <acptcnt/>
- <rsrvcnt/>
- <rcptcnt/>
- <cnclcnt/>
- <holdcnt/>
- <failcnt/>
- <outcnt/>
- </listinfo>
- </list>
- <info>
- <patinfo>
- <item>
- <pid/>
- <rgstno1/>
- <rgstno2/>
- <hngnm/>
- <engnm/>
- <brthareacnts/>
- <sex/>
- <age/>
- <brthdd/>
- <zipcd11/>
- <zipcd12/>
- <zipcdseq1/>
- <addr1/>
- <detladdr1/>
- <mpphon/>
- <telno/>
- <emailid/>
- <emailtype/>
- <healexampid/>
- <emailkind/>
- <zipcd21/>
- <zipcd22/>
- <zipcdseq2/>
- <addr2/>
- <detladdr2/>
- <psptno/>
- <pidcretfg/>
- <insuid/>
- <hopedd/>
- <detladdr2/>
- <clntgrde/>
- <patremcnts/>
- <notice/>
- <engnm2/>
- </item>
- </patinfo>
- <rsrvacptinfo>
- <item>
- <cmpyflag>N</cmpyflag>
- <orddd/>
- <rsrvdd/>
- <hopedd/>
- <rsrvtm/>
- <rsrvflag>01</rsrvflag>
- <rsltcnstflag>02</rsltcnstflag>
- <rsltcnstrsrvdd/>
- <rsrvguidsendyn/>
- <rsrvguidsenddd/>
- <insucorpbrchcd/>
- <insucorpbrchnm/>
- <insuid/>
- <disccd/>
- <discremark/>
- <emprelacd/>
- <empid/>
- <empnm/>
- <recmempid/>
- <recmempnm/>
- <famypid/>
- <famypnm/>
- <famyrelacd/>
- <deptcd/>
- <deptnm/>
- <clntgrde/>
- <clntempid/>
- <jobposcd/>
- <remcnts/>
- <pkgcd/>
- <pkgnm/>
- <latestpkginfo/>
- <choiflag>01</choiflag>
- <cmpycd/>
- <conseq/>
- <mode/>
- <status/>
- <healexamflag/>
- <healexamdetlflag/>
- <entcodd/>
- <rsltcnststatflag/>
- <dietcnstyn/>
- <orgexamdt/>
- <bizoffccd/>
- <jobkindflag/>
- <pkguncocd/>
- <rsltcnstrsrvtm/>
- <cmpynm/>
- <visaflag/>
- <famylst/>
- <visano/>
- <rsltcnstdrid/>
- <brthareacnts/>
- <acpt_insuid/>
- <acpt_insukind/>
- <discremcnts/>
- <conhistseq/>
- <statflag/>
- <rsltcnststatflag/>
- <rsltcnstrsrvdd/>
- <orddeptcd/>
- <orddrid/>
- <ordtm/>
- <cretno/>
- <acptseqno/>
- <acpt_insucd/>
- <pkgamt/>
- <rsrvno/>
- <rsltcnstdrid/>
- <healexamplacecd/>
- </item>
- <addlst>
- <sel/>
- <testflag/>
- <testcd/>
- <testnm/>
- <uncocd/>
- <scoreamt/>
- <prcptims/>
- <discamt/>
- <examseq/>
- <calcscorcd/>
- <prcpno/>
- <prcpdd/>
- <m/>
- <grupflag/>
- <addtotamt/>
- </addlst>
- <pkglst>
- <sel/>
- <pkgflag/>
- <pkgcd/>
- </pkglst>
- </rsrvacptinfo>
- <histlst>
- <item>
- <orddd/>
- <pkgcd/>
- <pkgnm/>
- <rsrvdd/>
- <rsrvno/>
- <lastupdtrid/>
- <lastupdtdt/>
- <cmpyflag/>
- <visano/>
- <remcnts/>
- </item>
- </histlst>
- <curlst>
- <item>
- <hopedd/>
- <rsrvtm/>
- <orddd/>
- <testcd/>
- <testnm/>
- <testroomcd/>
- <statflag/>
- <lastupdtrid/>
- <lastupdtdt/>
- </item>
- </curlst>
- <rcptinfo>
- <pkgamt/>
- <cmpyaddamt/>
- <subtotamt/>
- <preamt/>
- <discamt/>
- <uncoamt/>
- <realamt/>
- <ownbamt/>
- <preamt2/>
- <totprercptamt/>
- <psnaddamt/>
- </rcptinfo>
- <visalst>
- <item>
- <visano/>
- </item>
- </visalst>
- <pkgdetl>
- <item>
- <cdnm/>
- <pkgcd/>
- <spcnm/>
- <testnm/>
- <stndval/>
- <padd/>
- </item>
- </pkgdetl>
- <taginfo>
- <rtime/>
- <tagno/>
- <suppstat/>
- </taginfo>
- </info>
- <sum/>
- <seqprntdata/>
- <visaphot>
- <attachfile>
- <image/>
- </attachfile>
- </visaphot>
- </main>
- <send>
- <srchhealexamdetlflag/>
- <srchfromdd/>
- <srchtodd/>
- <srchpid/>
- <srchpnm/>
- <srchinstcd/>
- <srchhealexamflag/>
- <clscd/>
- <etccd/>
- <save/>
- <srchpnm2/>
- <srchpid2/>
- <srchrsrvdd/>
- <srchrsrvno/>
- <srchinstcd/>
- <srchjobflag/>
- <savercpt>
- <opmi_out/>
- </savercpt>
- <srchlst>
- <srchfamypid/>
- <srchfamyinstcd/>
- <srchfamyhealexamflag/>
- </srchlst>
- <visanosrch>
- <genrdd/>
- <genrkind/>
- <instcd/>
- </visanosrch>
- <srchvisano/>
- <srcocmlflag/>
- <srchmode>4</srchmode>
- <srchhealexampid/>
- <srchrgstno1/>
- <srchrgstno2/>
- <srchcond/>
- <srchpkgcd/>
- <srchcmpycd/>
- <srchconseq/>
- <srchsex/>
- <savercpt>
- <opmi_out/>
- </savercpt>
- <savercpt>
- <opmi_out/>
- </savercpt>
- <rrgstno/>
- <taginfo/>
- <srchtagno/>
- <savetemprsrv/>
- <attach>
- <file/>
- </attach>
- <visaphotpath/>
- </send>
- <init>
- <baseinfo>
- <pamcdlst>
- </pamcdlst>
- <hedetlflaglst/>
- <detlcodelst/>
- <testflag/>
- <natiinlst/>
- <relacdlst/>
- <heflaglst/>
- <rsltlst/>
- <uncocdlst>
- </uncocdlst>
- <clntgrdlst/>
- <rsrvflaglst/>
- <rsltcnstflaglst/>
- <choiflaglst/>
- <emaillst/>
- <statlst/>
- <cmpydetlcdlst>
- <deptlst/>
- </cmpydetlcdlst>
- <healexamplacelst/>
- </baseinfo>
- <srchmode>4</srchmode>
- <place>
- <healexamplacecd/>
- </place>
- </init>
- <hidden>
- <tlst/>
- <item/>
- </hidden>
- <temp>
- <templst/>
- <rcptinfo>
- <hidden/>
- </rcptinfo>
- <rcptno_out/>
- <emailtype/>
- <pkgtestcdlst/>
- <rsrvacptkey/>
- <colgpkgchoiyn>
- <item>
- <existyn/>
- </item>
- </colgpkgchoiyn>
- <temp>
- <psnworkinfo/>
- </temp>
- <rcptCheck/>
- <discamt/>
- <rsrvstate/>
- <sytsrsrvchk/>
- <priceamt/>
- </temp>
- <tmp>
- <testcount/>
- </tmp>
- <source>
- <selflag/>
- <srchcond/>
- <srchpkgflag/>
- <srchcdnm/>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchinstcd/>
- <multiyn/>
- <openerid/>
- <sex/>
- <setflag/>
- </source>
- <tag/>
- <image>
- <attachfile>
- <image/>
- </attachfile>
- </image>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
- <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA010.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetBaseInfo();
- fInitInfo();
- fInitDate(true);
- fInitList();
- model.toggle("case_acpt");
- fSetBtnStat();
- fGetList();
- //btn_acpt.disabled = true;
- model.refresh();
- ]]>
- </script>
- <submission id="TRAHA00001"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRAHA00013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/test" replace="instance" resultref="/root/tmp"/>
- <submission id="TRAHA04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
- <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
- <submission id="TRAHA00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/info/histlst"/>
- <submission id="TRAHA00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/pkgtestcdlst"/>
- <submission id="TRAHA00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/cmpydetlcdlst"/>
- <submission id="TRAHA00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/rsrvacptkey"/>
- <submission id="TRAHA00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/info/pkgdetl"/>
- <submission id="TRAHA00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/sytsrsrvchk"/>
- <submission id="TRAHA04013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <submission id="TRAHA00509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/priceamt" replace="instance" resultref="/root/temp/priceamt"/>
- <submission id="TRAHA00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchlst" replace="instance" resultref="/root/main/info/rsrvacptinfo/familylst"/>
- <submission id="TRAHA00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/familylst" replace="instance" resultref="/root/hidden/tlst"/>
- <submission id="TRAHA00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/familylst" replace="instance" resultref="/root/hidden/tlst"/>
- <submission id="TRAHA00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/visanosrch" replace="instance" resultref="/root/main/info/patinfo"/>
- <submission id="TRAHA00610" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/visanosrch" replace="instance" resultref="/root/main/info/visalst/item"/>
- <submission id="TRAHA04017" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/imgbinary"/>
- <submission id="TRAHA02105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/rcptno_out"/>
- <submission id="TRAHB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/detlcodelst"/>
- <submission id="TRAHA00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send1" replace="instance" resultref="/root/price"/>
- <submission id="TXAHA04027" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/tmp"/>
- <submission id="TXAHA04028" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" replace="instance" resultref="/root/tmp"/>
- <submission id="TXAHA04029" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendcmts" replace="instance" resultref="/root/tmp"/>
- <submission id="TXAHA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAHA00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/tmp"/>
- <submission id="TXAHA00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" replace="instance" resultref="/root/tmp"/>
- <submission id="TXAHA00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tmp" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAHA00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/temprsrv"/>
- <submission id="TXAHA00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/info/rcptinfo"/>
- <submission id="TXAHA02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/rcptinfo/hidden"/>
- <submission id="TXAHA02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/rcptinfo/hidden"/>
- <submission id="TRAHA00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/seqprntdata"/>
- <bind id="bind_addtestcd" ref="/root/main/info/acptinfo/addlst/testcd" readonly="../testcdkey!=''"/>
- <bind id="bind1" ref="/root/main/list/rsrvlst/statflag"/>
- <submission id="TRAHA04012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/info"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fGetBaseInfo(){
- // 건진상세구분
- var healexamfg = fGetHealExamFlag();
- /*
- if( healexamfg == "C") {
- zbcfGetCodeList( new Array( "A0069" ),
- new Array("/root/init/baseinfo/hedetlflaglst" ) );
- }
- else {
- zbcfGetCodeList( new Array( "A0070" ),
- new Array("/root/init/baseinfo/hedetlflaglst" ) );
- }
- */
- zbcfGetCodeList( new Array( "A0070" , "A0117","A0465","P0049","A0107"),
- new Array("/root/init/baseinfo/hedetlflaglst"
- ,"/root/init/baseinfo/testflag"
- ,"/root/init/baseinfo/natiinlst"
- ,"/root/init/baseinfo/rsltlst"
- , "/root/init/baseinfo/statlst"
- ) );
- submit("TRZBC00101");
- model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
- submit("TRAHA00104");
-
- healGetCodeList( new Array("S600")
- , new Array("/root/init/baseinfo/healexamplacelst") );
- model.removenode("/root/init/baseinfo/healexamplacelst/S600[1]");
- //model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
- model.setValue("/root/send/clscd", "G" ); //공통코드
- model.setValue("/root/send/etccd", "G06"); //비자건진분류코드 Setting
- if( submit("TRAHB00602") == true ){
- var nodelst = instance1.selectNodes("/root/init/baseinfo/detlcodelst/item");
- if( nodelst.length == 1) {
- cmb_srchhealexamdetlflag.value = model.getValue("/root/init/baseinfo/detlcodelst/item/etcitemcnts");
- }
- else if( nodelst.length > 1){
- for( var i = 0 ; i < nodelst.length ; i++) {
- if( "Y" == model.getValue("/root/init/baseinfo/detlcodelst/item[" + i + "]/useyn") ) {
- cmb_srchhealexamdetlflag.value = model.getValue("/root/init/baseinfo/detlcodelst/item[" + i + "]/etcitemcnts");
- break;
- }
- }
- }
- cmb_healexamdetlflag.value = cmb_srchhealexamdetlflag.value;
- }
- cmb_healexamdetlflag.refresh();
- //cmb_srchhealexamdetlflag.refresh();
- //model.setValue("/root/main/info/patinfo/item/brthareacnts","/root/init/baseinfo/natiinlst")
- cmb_brthareacnts.refresh();
- }
- /**
- * 리스트내역 초기화
- */
- function fInitList( ){
- model.removeNodeset("/root/main/list/rsrvlst");
- model.removeNodeset("/root/main/list/acptlst");
- model.removeNodeset("/root/main/list/cncllst");
- model.resetInstanceNode("/root/main/list/listinfo");
- model.removeNodeset(grd_addlst.nodeset);
- }
- /*********************************************************
- **************가족조회하는 함수***************************
- *********************************************************/
- function fSrchFamily(){
- //등록번호가 들어가야 한다는 에러문
- if(ipt_famypid.currentText==""){
- messageBox("가족의 등록번호를 입력하셔야 합니다.","C001");
- return;
- }
- //이름이 들어가야 한다는 에러문
- if (opt_famypnm.currentText==""){
- messageBox("가족의 이름이 등록돼지 않았슴","C001");
- return;
- }
- //가족관계를 입력해야 한다는 에러문
- if(cmb_famyrelacd.label=="" && cmb_famyrelacd.value==""){
- messageBox("가족관계를 입력하셔야 해요","C001");
- return;
- }
- //바로 행 삽입
- grd_family.addRow();
- var vgrd_family_row=grd_family.row;
- grd_family.valueMatrix(vgrd_family_row,1)="N";
- grd_family.valueMatrix(vgrd_family_row,2)=ipt_pid.currentText;
- grd_family.valueMatrix(vgrd_family_row,3)=ipt_famypid.currentText;
- grd_family.valueMatrix(vgrd_family_row,4)=opt_famypnm.currentText;
- grd_family.valueMatrix(vgrd_family_row,5)=cmb_famyrelacd.value;
- grd_family.valueMatrix(vgrd_family_row,6)=cmb_famyrelacd.label;
- model.refresh();
- //ipt_famypid
- //opt_famypnm
- //cmb_famyrelacd
- }
- /******************************************************
- ************가족코드 삭제******************************
- *****************************************************/
- function fDelFamily(){
- var vgrd_familyRowDel=grd_family.row;
- //선택할 행이 없으면
- if(vgrd_familyRowDel<0)
- return;
- //비자건진이 아니면
- if(cmb_srchhealexamdetlflag.value!="G02")
- return;
- //기관코드가 없으면
- if(getUserInfo("posinstcd")=="")
- return;
- if(grd_family.valueMatrix(vgrd_familyRowDel,2)=="" ||
- grd_family.valueMatrix(vgrd_familyRowDel,3)=="" ||
- grd_family.valueMatrix(vgrd_familyRowDel,4)=="" ||
- grd_family.valueMatrix(vgrd_familyRowDel,5)=="" ||
- grd_family.valueMatrix(vgrd_familyRowDel,6)=="" ){
- messageBox("내용이 없어요","C001");
- return;
- }
- model.setValue("/root/send/familylst/healexamflag",fGetHealExamFlag());
- model.setValue("/root/send/familylst/pid",grd_family.valueMatrix(vgrd_familyRowDel,2));
- model.setValue("/root/send/familylst/famypid",grd_family.valueMatrix(vgrd_familyRowDel,3));
- model.setValue("/root/send/familylst/famyrelcd",grd_family.valueMatrix(vgrd_familyRowDel,5));
- model.setValue("/root/send/familylst/instcd",getUserInfo("posinstcd"));
- submit("TRAHA00603");
- }
- /********************************************************
- ********비자건진 가족관계 저장***************************
- ********************************************************/
- function fSaveFamy(){
- var vHealexamflag=fGetHealExamFlag();
- var vgrd_familyRow=grd_family.row;
- //건진구분이 읍을시
- if (vHealexamflag=="")
- return;
- //기관코드가 읍을시
- if(getUserInfo("posinstcd")=="")
- return;
- if(grd_family.valueMatrix(vgrd_familyRow,2)=="" ||
- grd_family.valueMatrix(vgrd_familyRow,3)=="" ||
- grd_family.valueMatrix(vgrd_familyRow,4)=="" ||
- grd_family.valueMatrix(vgrd_familyRow,5)=="" ||
- grd_family.valueMatrix(vgrd_familyRow,6)=="" ){
- messageBox("입력이 빠졌어요","C001");
- return;
- }
- model.setValue("/root/send/familylst/healexamflag",vHealexamflag);
- model.setValue("/root/send/familylst/pid",grd_family.valueMatrix(vgrd_familyRow,2));
- model.setValue("/root/send/familylst/famypid",grd_family.valueMatrix(vgrd_familyRow,3));
- model.setValue("/root/send/familylst/famynm",grd_family.valueMatrix(vgrd_familyRow,4));
- model.setValue("/root/send/familylst/famyrelcd",grd_family.valueMatrix(vgrd_familyRow,5));
- model.setValue("/root/send/familylst/instcd",getUserInfo("posinstcd"));
- model.setValue("/root/send/familylst/famyrelnm",grd_family.valueMatrix(vgrd_familyRow,6));
- //submit("TRAHA00602");
- }
- /*********************************************************
- ***************건진자 가족관계 조회***********************
- *********************************************************/
- function fSrchFamy(){
- //더블클릭한 건진자가 없을 시에
- if (ipt_pid.currentText=="")
- return;
- var vHealexamflag=fGetHealExamFlag();
- //건진구분이 없을 시에
- if (vHealexamflag=="")
- return;
- //기관코드가 없을 시에
- if (getUserInfo("posinstcd")=="")
- return;
- model.setValue("/root/send/srchlst/srchfamyhealexamflag",vHealexamflag)
- model.setValue("/root/send/srchlst/srchfamypid",ipt_pid.currentText);
- model.setValue("/root/send/srchlst/srchfamyinstcd",getUserInfo("posinstcd"));
- //submit("TRAHA00601");
- }
- /**
- * 입력정보 초기화
- */
- function fInitInfo(){
- model.resetInstanceNode("/root/main/info/patinfo/item");
- model.resetInstanceNode("/root/main/info/visalst/item");
- model.resetInstanceNode("/root/main/info/rsrvacptinfo/item");
- model.resetInstanceNode("/root/image/attachfile/image");
- model.resetInstanceNode("/root/send/attach/file");
- fInitRsrvAcptInfo();
- }
- /**
- * 접수 정보 초기화
- */
- function fInitRsrvAcptInfo(){
- //model.resetInstanceNode("/root/main/info/rsrvacptinfo/item");
- model.resetInstanceNode("/root/main/info/rcptinfo");
- model.resetInstanceNode("/root/main/info/rsrvacptinfo/addlst");
- model.removeNodeset(grd_addlst.nodeset);
- //model.removeNodeset("/root/main/info/rsrvacptinfo/item/visano");
- //model.removeNodeset("/root/main/info/visalst/item");
- //model.removeNodeset("/root/main/info/histlst/item");
- fInitDate(false);
- model.setValue( cmb_healexamdetlflag.attribute("ref") , cmb_srchhealexamdetlflag.value );
- model.setValue( rdo_visaflag.attribute("ref") , "M");
- model.setValue(cmb_pkguncocd.attribute("ref"), "V01" );
- model.setFocus("ipt_rgstno1");
-
- rdo_healexamplacecd.refresh();
- if(rdo_healexamplacecd.value != "" ) {
- rdo_healexamplacecd.dispatch("xforms-select"); // 건진장소 default 셋팅
- }else {
- var sFlag=fGetHealExamPlaceFlag();
- if (sFlag == "G" ) {
- rdo_healexamplacecd.select(0);
- } else {
- rdo_healexamplacecd.select(1);
- }
- }
- }
- /**
- * 일자내역 초기화
- *bSrchDt : 조회일자초기화여부
- */
- function fInitDate(bSrchDt){
- var cur_date = getCurrentDate();
- if(model.getValue(ipt_orddd.attribute("ref")) == "")
- {
- model.setValue( ipt_orddd.attribute("ref") , cur_date);
- }
- model.setValue( ipt_rsrvdd.attribute("ref") , cur_date);
- out_engnm.value = ipt_engnm.value;
- if( bSrchDt ) {
- model.setValue( ipt_srchtodd.attribute("ref") , cur_date);
- model.setValue( ipt_srchfromdd.attribute("ref") , cur_date);
- }
- }
- /**
- * 버튼상태 setting
- */
- function fSetBtnStat(){
- btn_rcpt.disabled = false;
- btn_rsrvcfm1.disabled = true;
- btn_rsrvcfm2.disabled = true;
- btn_acpt.disabled = true;
- btn_acptcncl.disabled = true;
- btn_rsrvcncl.disabled = true;
- var vStat = model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
- //if(isXPathTextNull("/root/main/info/rsrvacptinfo/item/statflag") ) return ;
- //alert( vStat );
- if ( vStat == "C" ){
- btn_rsrvcfm1.disabled = false;
- btn_rsrvcfm2.disabled = false;
- btn_rsrvcncl.disabled = false;
- btn_acpt.disabled = false;
- }
- else
- if( vStat == "D"){
- btn_rsrvcfm1.disabled = false;
- btn_rsrvcfm2.disabled = false;
- btn_acpt.disabled = false;
- }
- else
- if( vStat == "E" ){
- btn_acptcncl.disabled = false;
- btn_acpt.disabled = true;
- }
- else
- if( vStat == "F" ){
- btn_rsrvcfm1.disabled = false;
- btn_rsrvcfm2.disabled = false;
- btn_acptcncl.disabled = true;
- btn_acpt.disabled = true;
- }
- else
- if( vStat == "G" ){
- btn_acptcncl.disabled = true;
- btn_acpt.disabled = true;
- }
- else {
- btn_rsrvcfm1.disabled = false;
- btn_rsrvcfm2.disabled = false;
- btn_acpt.disabled = false;
- }
- model.refresh();
- }
- /***************************************************************
- ********************비자연번호따오는 함수***********************
- ***************************************************************/
- function fGetVisano(){
- var vCutVisa,vCopyVisa,vGetDD,vRetNo;
- vGetDD=getCurrentDate();
- //년도만 짤라냄
- vGetDD=vGetDD.substring(0,4);
- //20070000이런 식으로 나옴
- vGetDD=vGetDD.getRightPad(8,"0");
- model.setValue("/root/send/visanosrch/genrdd",vGetDD);
- model.setValue("/root/send/visanosrch/genrkind","V");
- model.setValue("/root/send/visanosrch/instcd",getUserInfo("posinstcd"));
- submit("TRAHA00610");
- vRetNo=model.getValue("/root/main/info/visalst/item/visano");
- //model.removeNodeset("/root/main/info/rsrvacptinfo/item/visano");
- //model.resetInstanceNode("/root/main/info/rsrvacptinfo/item/visano");
- //fCheckNodeExist("/root/main/info/rsrvacptinfo/item/visano",true);
- model.setValue("/root/main/info/rsrvacptinfo/item/visano",vRetNo);
- model.refresh();
- }
- /**
- * 예약/예약등록/접수/취소/보류 리스트 조회
- * 예약등록의 경우 예약등록일자 기준.
- * 예약등록일 = 가예약 + 예약
- * 예약 = 예약
- */
- function fGetList(){
- fInitList();
- if( isXPathTextNull( "/root/send/srchhealexamdetlflag") ||
- isXPathTextNull( "/root/send/srchtodd") ||
- isXPathTextNull( "/root/send/srchfromdd")) return ;
- model.setValue("/root/send/srchhealexamflag", fGetHealExamFlag());
- var vMode = fGetSrchMode();
- model.setValue("/root/send/srchmode", vMode );
- model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
- model.setValue("/root/send/srchvisano",ipt_srch_visano.currentText)
- openLoadingBar("건진자 리스트를 가져오는 중입니다..") ;//처리중 화면을 오픈한다.
- submit("TRAHA04013");
- closeLoadingBar() ;//처리중 화면을 close한다.
- }
- /** =====================================================================================================================================================================
- * SPAHA00100_PARAM1 : 예약조회구분 [건진전체(T), 검사실(R), 상담의별 결과상담(C)]
- * SPAHA00100_PARAM2 : 예약일자
- * SPAHA00100_PARAM3 : 성별구분(종건예약일정)
- * SPAHA00100_PARAM4 : 예약일자가 setting될 부모 node
- * SPAHA00100_PARAM5 : 예약시간 setting될 부모 node
- * SPAHA00100_PARAM6 : 건진구분
- * ================================================================================================================================================*/
- function fGetRsrvDateTime(vMode, rsrvddObj, rsrvtmObj){
- setParameter ("SPAHA00100_PARAM1", vMode);
- setParameter ("SPAHA00100_PARAM2", ipt_rsrvdd.value );
- setParameter ("SPAHA00100_PARAM3", opt_sex.value );
- if( rsrvddObj != null ) setParameter ("SPAHA00100_PARAM4", rsrvddObj.attribute("ref") );
- if( rsrvtmObj != null ) setParameter ("SPAHA00100_PARAM5", rsrvtmObj.attribute("ref") );
- setParameter ("SPAHA00100_PARAM6", fGetHealExamFlag() );
- setParameter ("SPAHA00100_PARAM7", "/root/main/info/rsrvacptinfo/item/rsltcnstdrid" );
- setParameter ("SPAHA00100_PARAM8", cmb_healexamdetlflag.value);
- modal("SPAHA00100", "", "", "", "SPAHA00100", "/root/source","/root/target");
- }
- /**
- *1:예약, 2:예약등록, 3:접수, 4: 취소및보류, 5: 예약취소, 6: 접수취소, 7:보류
- */
- function fGetSrchMode(){
- var idx = swt_acptlst.selectedIndex ;
- if( idx == 0) {
- idx = 3;
- }
- else if( idx == 1 ){
- idx = 1;
- }
- else if(idx == 2){
- return rdo_cnclmode.value ;
- }
- else if(idx == 3){
- idx = 8;
- }
- return idx;
- }
- /**
- * 예약/접수정보 check.
- */
- function fCheckAcpt(vMode){
- var vRsvdd = "";
- var vStatus = model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
- //예약/예약확인/예약보류
- //if( !isRequiredGroup("rdo_visaflag", "ipt_pkgcd") ) return false;
- if( model.getValue(rdo_visaflag.attribute("ref") ) == "" ) {
- messageBox("비자구분을 ", "C001");
- model.setFocus("rdo_visaflag");
- return false;
- }
- if( model.getValue(rdo_visaflag.attribute("ref") ) == "" ) {
- messageBox("패키지를 ", "C001");
- model.setFocus("ipt_pkgcd");
- return false;
- }
- if( model.getValue(cmb_pkguncocd.attribute("ref")) == "" ){
- messageBox("청구구분을 ", "C001");
- model.setFocus("cmb_pkguncocd");
- return false;
- }
- if( (vMode == "C") ){
- if( !isRequiredGroup("ipt_rsrvdd") ) return false;
- vRsvdd = model.getValue("/root/main/info/rsrvacptinfo/item/hopedd");
- vRsvdd = vRsvdd.toDate("YYYYMMDD");
- if( vRsvdd < getCurrentDate() ){
- messageBox("예약일자가 현재일자 전으로 ", "E005");
- model.setFocus("ipt_rsrvdd");
- return false;
- }
- }
- //접수시
- else
- if( vMode == "E" ){
- if(model.getValue(ipt_orddd.attribute("ref")) == "")
- {
- model.setValue("/root/main/info/rsrvacptinfo/item/orddd", getCurrentDate());
- }
- }
- //예약및접수취소시(D,F)
- else
- if( vMode == "D" ){
- if( vStatus != "C" ){
- messageBox("예약상태가 아닌 항목은 예약취소 ", "E001");
- return false;
- }
- }
- else
- if( vMode == "F" ){
- if( vStatus != "E"){
- messageBox("접수상태가 아닌 항목은 접수취소 ", "E001");
- return false;
- }
- }
- return true;
- }
- /**
- * 건진내역 계산
- 건진구분 :srchhealexamflag
- 예약일자 :srchrsrvdd
- 예약번호 :srchrsrvno
- 등록번호 :srchpid
- 기관코드 :srchinstcd
- */ function fCalcAmt(vJobFlag){
- var ret = -1;
- var vTmp = fGetHealExamFlag();
- if( vTmp == "" ) return ret;
- model.setValue("/root/send/srchhealexamflag", vTmp );
- vTmp = model.getValue(ipt_pid.attribute("ref"));
- if( vTmp == "" ) return ret;
- model.setValue("/root/send/srchpid", vTmp );
- vTmp = model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd");
- if( vTmp== "" ) return ret;
- model.setValue("/root/send/srchrsrvdd", vTmp );
- vTmp = model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno");
- if( vTmp == "" ) return ret;
- model.setValue("/root/send/srchrsrvno", vTmp );
- model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd"));
- model.setValue("/root/send/srchjobflag" ,vJobFlag);
- var sNd = "/root/temp/rcptinfo/hidden/opmi_out";
- model.resetInstanceNode(sNd);
- sNd = sNd + "/";
- openLoadingBar("수납예상내역 계산 중입니다..") ;//처리중 화면을 오픈한다.
- if( submit("TXAHA02101") == true ){
- //model.setValue(opt_pkgamt.attribute("ref") , model.getValue( sNd + "opmi_baseexamamt"));
- //model.setValue(opt_addamt.attribute("ref") , model.getValue( sNd + "opmi_addexamamt"));
- //model.setValue(opt_totamt.attribute("ref") , model.getValue( sNd + "opmi_totamt"));
- model.refresh();
- ret = 1;
- }
- closeLoadingBar() ;//처리중 화면을 close한다.
- return ret;
- }
- /**
- **건진자번호로 예약/접수 상세정보
- */
- function fGetDetlInfoHid(){
- var sHealExamPid = model.getValue("/root/main/info/patinfo/item/healexampid");
- if( sHealExamPid != "" ){
- var vHealExamDetlFg = model.getValue(cmb_healexamdetlflag.attribute("ref") );
- ahafGetRsrvAcpDetltInfoWithPid(vHealExamDetlFg, sHealExamPid);
- }
- }
- /**
- ** 국가와 나이에 따라 메세지 처리
- * vMode: True 일때 패키지 체크 False일때 체크 않함
- */
- function fMessageChk(vMode) {
- var vBrthArea = model.getValue("/root/main/info/rsrvacptinfo/item/brthareacnts");
- var vAge = model.getValue("/root/main/info/patinfo/item/age");
- var vSex = model.getValue("/root/main/info/patinfo/item/sex");
- var vRrgstno1 = model.getValue("/root/main/info/patinfo/item/rgstno1");
- var vRrgstno2 = model.getValue("/root/main/info/patinfo/item/rgstno2");
- var vPkg = model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd");
- vAge = vAge != "" ? vAge : getFullAge(rpad(vRrgstno1,6,'0') + rpad(vRrgstno2,7,'0'));
- vSex = vSex != "" ? vSex : getGender(rpad(vRrgstno1,6,'0') + rpad(vRrgstno2,7,'0'));
- if(vMode) {
- }else {
- //나이 70세 이상이면서 호주일시 활성창
- if( (vPkg == "VPCDAVM" && vAge >=70) || (vPkg == "VPCDAVA" && vAge >=70)){
- messageBox("심전도 검사를 받아야 하는 건진자","E008");
- }
- //나이 2세 미만이면서 호주일 경우 선택 하시오
- if((vPkg == "VPCDASC" && vAge < 2) || (vPkg == "VPCDAEC" && vAge < 2)){
- messageBox("머리둘레측정을 받아야 하는 건진자","E008");
- }
- //나이 3세 미만이면서 뉴질랜드일 경우 활성창 뜨기
- if(vPkg == "VPCDNEB" && vAge < 3){
- messageBox("머리둘레측정을 받아야 하는 건진자","E008");
- }
- //20세 이상 뉴질랜드 선택시
- //if(vAge >=20 && vBrthArea == "NZ"){
- if((vPkg == "VPCDNEAB" && vAge >=20) || (vPkg == "VPCDNEAA" && vAge >=20)){
- messageBox("허리둘레측정을 받아야 하는 건진자","E008");
- }
- //45세 이상 여자 뉴질랜드 선택시
- if((vPkg == "VPCDNEAB" && vAge >=45 && vSex == "F") || (vPkg == "VPCDNEAA" && vAge >=45 && vSex == "F")){
- messageBox("유방촬영검사를 받아야 하는 건진자","E008");
- }
- }
- }
- /*********************************************************
- * 원하는 길이만큼 오른쪽으로 문자채움
- *******************************************************/
- function rpad(newValue, len, ch){
- // 오른쪽에 ch문자로 채우기
- var strlen = newValue.getTrim().length;
- var ret = "" ;
- var alen = len - strlen;
- var astr = "";
- //부족한 숫자만큼 len 크기로 ch 문자로 채우기
- for (i=0; i<alen; ++i)
- {
- astr = astr + ch;
- }
- ret = newValue.getTrim() + astr; //뒤에서 채우기
- return ret;
- }
- /****************************************************
- * 가예약자 일괄 취소
- *****************************************************/
- function fDelAllTempRsrv() {
- for(var i=0; i < grd_rsrvlst.rows; i++) {
- var statFlag = grd_rsrvlst.valueMatrix( i , grd_rsrvlst.colRef("statflag") );
- if(statFlag == "A") {
- grd_rsrvlst.addStatus( i , "delete");
- }
- }
- model.setValue("/root/send/savetemprsrv" , grd_rsrvlst.getUpdateData());
- var ret = messageBox("가예약일괄 취소를","Q004")
- if(ret == 6) {
- if(submit("TXAHA00114")) {
- fGetList();
- grd_rsrvlst.clearStatus();
- }
- }else if(ret == 7) {
- grd_rsrvlst.clearStatus();
- }
- }
- function fDelTempRsrv() {
- for(var i=0; i < grd_rsrvlst.rows; i++) {
- var statFlag = grd_rsrvlst.valueMatrix( i , grd_rsrvlst.colRef("statflag") );
- var rowRsrvNo = grd_rsrvlst.valueMatrix( i , grd_rsrvlst.colRef("rsrvno") );
- if(statFlag == "A" && rowRsrvNo == model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno")) {
- grd_rsrvlst.addStatus( i , "delete");
- }
- }
- model.setValue("/root/send/savetemprsrv" , grd_rsrvlst.getUpdateData());
- var ret = messageBox("가예약 취소를","Q004")
- if(ret == 6) {
- if(submit("TXAHA00114")) {
- fGetList();
- grd_rsrvlst.clearStatus();
- }
- }else if(ret == 7) {
- grd_rsrvlst.clearStatus();
- }
- }
-
- function fPrntSeq(){
- model.setValue("/root/send/srchhealexamflag" , fGetHealExamFlag() ); //건진구분
- model.setValue("/root/send/srchrsrvdd" , model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd") ); //건진예약등록일자
- model.setValue("/root/send/srchrsrvno" , model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno") ); //건진예약등록번호
- model.setValue("/root/send/srchcmpycd" , model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd" )); //사업체코드
- model.setValue("/root/send/srchconseq" , model.getValue("/root/main/info/rsrvacptinfo/item/conseq" )); //일련번호
- model.setValue("/root/send/srchconseq" , model.getValue("/root/main/info/rsrvacptinfo/item/conhistseq") ); //일련번호
- model.makeValue("/root/send/srchchoiflag" , model.getValue("/root/main/info/rsrvacptinfo/item/choiflag") ); //선택검사
- if( submit("TRAHA00402") == false ) return ;
-
- model.makeNode("/root/main/seqprntdata/pid");
- model.makeNode("/root/main/seqprntdata/hngnm");
- model.makeNode("/root/main/seqprntdata/sexage");
- model.makeNode("/root/main/seqprntdata/pkgnm");
- model.makeNode("/root/main/seqprntdata/brtdd");
-
- model.setValue("/root/main/seqprntdata/pid" ,model.getValue(ipt_pid.attribute("ref") ) ); //등록번호
- model.setValue("/root/main/seqprntdata/hngnm" ,model.getValue(ipt_pnm.attribute("ref")) ); //성명
- model.setValue("/root/main/seqprntdata/sexage" ,model.getValue(opt_sex.attribute("ref")) + "/" + model.getValue(opt_age.attribute("ref")) ); //성별,나이
- model.setValue("/root/main/seqprntdata/pkgnm" ,model.getValue(opt_pkgnm.attribute("ref")) ); //패키지명
- model.setValue("/root/main/seqprntdata/brtdd" ,model.getValue(ipt_brthdd.attribute("ref")) ); //생년월일
- model.makeValue("/root/main/seqprntdata/cmpynm" ,model.getValue("/root/main/info/rsrvacptinfo/item/cmpynm")); //회사명
-
- var nodeList= instance1.selectNodes("/root/main/seqprntdata/item");
- if((nodeList != null) && (nodeList.length >0 )){
- // exeReportPreview("RPAHA00402", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- exeReportPreview("RPAHA00406", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- }
- }
-
-
- function RgstnoCheck(){
- var rgstno1 = ipt_rgstno1.currentText;
- var rgstno2 = ipt_rgstno2.currentText;
-
- var rgstno1 = model.getValue("/root/main/info/patinfo/item/rgstno1").getTrim();
- var rgstno2 = model.getValue("/root/main/info/patinfo/item/rgstno2").getTrim();
-
-
- if(rgstno1.length != 6 ){
- messageBox("주민번호 앞6자리 형식오류입니다. 올바른 형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rgstno1");
- return false;
- }else if(rgstno2.length != 7){
- messageBox("주민번호 뒤7자리 형식오류입니다. 올바른 형태로 입력하십시요!","E999","");
- model.setFocus("ipt_rgstno2");
- return false;
- }
-
- return true;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1198;2,785;2,759;">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">예약/접수</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_rslt" class="btn3_letter6" style="left:5px; top:4px; width:96px; height:22px; ">
- <caption>통합결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SMAER00800","","","","",ipt_pid.attribute("ref"),"/root/main/info/patinfo/item/pid");
- ]]>
- </script>
- </button>
- <button id="btn_visastat" class="btn6_letter5" visibility="hidden" style="left:415px; top:4px; width:92px; height:22px; ">
- <caption>비자통계</caption>
- </button>
- <button id="btn_testrsrv" class="btn3_letter6" style="left:215px; top:4px; width:104px; height:22px; ">
- <caption>외래검사예약</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- aezfPopUpRsrvSample("SMAEA02000", "", "/root/main/info/rsrvacptinfo/item");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:784px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitInfo();
- fSetBtnStat();
- ]]>
- </script>
- </button>
- <button id="btn_rsrvcncl" class="btn4_letter4" style="left:914px; top:4px; width:80px; height:22px; ">
- <caption>예약취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/info/patinfo/item/hngnm") == "") {
- model.setValue("/root/main/info/patinfo/item/hngnm", model.getValue("/root/main/info/patinfo/item/engnm"));
- }
- // fSaveRsrvAcpt("D");
- fSaveRsrvAcptPro("D");
- ]]>
- </script>
- </button>
- <button id="btn_acpt" class="btn4_letter2" style="left:997px; top:4px; width:56px; height:22px; ">
- <caption>접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //주민번호 체크
- if( ! RgstnoCheck() ){
- return false;
- }
-
- fInitDate(true);
- //연번이 입력되지 않았을때
- /*
- if(ipt_visayear.currentText==""){
- messageBox("연번이 입력되지","I001");
- return;
- }
- */
- //주민번호나 이름이 입력이 되지 않았을때
- if(ipt_rgstno1.currentText=="" || ipt_pnm.currentText==""){
- messageBox("이름또는 주민번호를 ","C001");
- return;
- }
- //패키지가 입력되지 않았을때
- if(ipt_pkgcd.value=="" || opt_pkgnm.value==""){
- messageBox("패키지를 ", "C001");
- return;
- }
- //국가코드 입력여부
- if(model.getValue("/root/main/info/rsrvacptinfo/item/brthareacnts") == "")
- {
- messageBox("국가를 ", "C001");
- return;
- }
- //model.setValue("/root/main/info/rsrvacptinfo/item/visano","/root/main/info/visalst/item/visano");
- if(ipt_visayear.currentText=="")
- btn_no.dispatch("DOMActivate");
- //일검 비자 처리시
- //fSaveRsrvAcptVisa("E");
- //종건접수시에 처리하는것
- //fSaveRsrvVisaAcpt("E");
- //fSaveRsrvAcpt("E");
- fSaveRsrvAcptPro("E");
- fnSetImage();
- fGetList();
- ]]>
- </script>
- </button>
- <button id="btn_acptcncl" class="btn4_letter4" style="left:1056px; top:4px; width:80px; height:22px; ">
- <caption>접수취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //alert("현재 접수취소는 불가합니다. \n접수취소를 원하시면 처방관리화면에서 처방 전체를 반환해주세요.");
- fSaveRsrvAcptPro("F");
- ]]>
- </script>
- </button>
- <button id="btn_rcpt" class="btn4_letter2" style="left:1139px; top:4px; width:56px; height:22px; ">
- <caption>수납</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- ahafOpenRcpt( fGetHealExamFlag()
- , model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd")
- , model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno")
- , model.getValue("/root/main/info/patinfo/item/pid")
- , model.getValue("/root/main/info/rsrvacptinfo/item/rcptstat")
- , model.getValue("/root/main/info/rsrvacptinfo/item/orddd" ) );
- ]]>
- </script>
- </button>
- <button id="btn_rsrvcfm1" class="btn4_letter2" style="left:855px; top:4px; width:56px; height:22px; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //주민번호 체크
- if( ! RgstnoCheck() ){
- return false;
- }
-
- //예약에는 연번이 발생하면 안됨
- //연번이 입력되지 않았을 때
- /*
- btn_no.dispatch("DOMActivate");
- if(ipt_visayear.currentText==""){
- messageBox("연번이 입려되지","I001");
- return;
- } */
- //주민번호나 이름이 입력이 되지 않았을때
- if(ipt_rgstno1.currentText=="" || ipt_pnm.currentText==""){
- messageBox("이름또는 주민번호를","C001");
- return;
- }
- //패키지가 입력되지 않았을때
- if(ipt_pkgcd.value=="" || opt_pkgnm.value==""){
- messageBox("패키지를 ", "C001");
- return;
- }
- //model.setValue("/root/main/info/rsrvacptinfo/item/visano",ipt_visayear.currentText);
- // fSaveRsrvVisaAcpt("C");
- if (model.getValue("/root/main/info/rsrvacptinfo/item/rsrvtm") ==""){
- messageBox("예약시간을 ", "C001");
- btn_totrsrvdt.dispatch("DOMActivate");
- }
- if(model.getValue("/root/main/info/rsrvacptinfo/item/brthareacnts") == "")
- {
- messageBox("국가를 ", "C001");
- return;
- }
- model.makeValue("/root/main/info/patinfo/item/hopedd",model.getValue("/root/main/info/rsrvacptinfo/item/hopedd"));
- if(model.getValue("/root/main/info/rsrvacptinfo/item/rsrvtm") !="") {
- fSaveRsrvAcptPro("C");
- fnSetImage();
- fGetList();
- }
- ]]>
- </script>
- </button>
- <button id="btn_rsrvcfm2" class="btn4_letter2" visibility="hidden" style="left:510px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //주민번호 체크
- if( ! RgstnoCheck() ){
- return false;
- }
-
- /*
- //연번이 입력되지 않았을 때
- if(ipt_visayear.currentText==""){
- messageBox("연번이 입력되지","I001");
- return;
- }
- */
- //주민번호나 이름이 입력이 되지 않았을때
- if(ipt_rgstno1.currentText=="" || ipt_pnm.currentText==""){
- messageBox("이름또는 주민번호가 입력되지","I001");
- return;
- }
- // fSaveRsrvAcpt("C");
- fSaveRsrvAcptPro("C");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn4_letter7" style="left:568px; top:4px; width:116px; height:22px; ">
- <caption>가예약일괄취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelAllTempRsrv();
- ]]>
- </script>
- </button>
- <button id="button12" class="btn4_letter5" style="left:688px; top:4px; width:92px; height:22px; ">
- <caption>가예약취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelTempRsrv();
- ]]>
- </script>
- </button>
- <button id="button13" class="btn3_letter6" style="left:110px; top:4px; width:104px; height:22px; ">
- <caption>비자결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAHA04320_검사결과관리.xrw");
- ]]>
- </script>
- </button>
- <button id="btn_prntseq" class="btn6_letter5" style="left:320px; top:4px; width:92px; height:22px; ">
- <caption>순서표출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrntSeq();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:13px; width:1200px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:571px; top:8px; width:89px; height:17px; ">환자검색 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetList();
- ]]>
- </script>
- </button>
- <line id="line7" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_srchpid" ref="/root/send/srchpid2" class="input_search" style="left:660px; top:8px; width:170px; height:19px; "/>
- <caption id="caption7" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">건진일자 :</caption>
- <button id="button11" class="icon_search" style="left:835px; top:10px; width:16px; height:16px; ">
- <caption/>
- </button>
- <output id="output7" ref="/root/send/srchpnm2" class="output_fix" style="left:855px; top:8px; width:235px; height:19px; "/>
- <caption id="caption20" class="search_name" style="left:331px; top:8px; width:86px; height:17px; ">검진구분 :</caption>
- <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srchhealexamdetlflag" class="combo_search" disabled="true" appearance="minimal" style="left:420px; top:8px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0070">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_healexamdetlflag.value= cmb_srchhealexamdetlflag.value ;
- ]]>
- </script>
- </select1>
- <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:92px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:212px; top:8px; width:100px; height:19px; "/>
- <caption id="caption34" class="search_n_b" style="left:196px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- </group>
- <caption id="caption22" class="cell_1" visibility="hidden" style="left:1021px; top:705px; width:50px; height:23px; vertical-align:middle; ">합계</caption>
- <output id="opt_totamt" ref="/root/main/info/rcptinfo/totamt" class="output_fix" visibility="hidden" format="#,###" style="left:1074px; top:707px; width:115px; height:19px; text-align:right; "/>
- <output id="output15" ref="/root/main/list/listinfo/rcptcnt" class="output_fix" visibility="hidden" style="left:38px; top:718px; width:65px; height:19px; text-align:right; "/>
- <caption id="caption60" class="cell_1" style="left:106px; top:716px; width:35px; height:23px; vertical-align:middle; ">예약</caption>
- <line id="line28" class="line_2" style="x1:0px; y1:714px; x2:305px; y2:714px; "/>
- <caption id="caption61" class="cell_1" style="left:0px; top:716px; width:35px; height:23px; vertical-align:middle; ">접수</caption>
- <caption id="caption62" class="cell_1" style="left:212px; top:716px; width:35px; height:23px; vertical-align:middle; ">취소</caption>
- <caption id="caption63" class="cell_1" visibility="hidden" style="left:106px; top:693px; width:35px; height:23px; vertical-align:middle; ">보류</caption>
- <output id="output17" ref="/root/main/list/listinfo/rsrvcnt" class="output_fix" style="left:144px; top:718px; width:65px; height:19px; text-align:right; "/>
- <caption id="caption64" class="cell_1" visibility="hidden" style="left:0px; top:693px; width:35px; height:23px; vertical-align:middle; ">수납</caption>
- <output id="output19" ref="/root/main/list/listinfo/cnclcnt" class="output_fix" style="left:250px; top:718px; width:55px; height:19px; text-align:right; "/>
- <output id="output20" ref="/root/main/list/listinfo/holdcnt" class="output_fix" visibility="hidden" style="left:144px; top:695px; width:65px; height:19px; "/>
- <output id="output21" ref="/root/main/list/listinfo/acptcnt" class="output_fix" style="left:38px; top:718px; width:65px; height:19px; text-align:right; "/>
- <output id="output22" ref="/root/main/list/listinfo/outcnt" class="output_fix" visibility="hidden" style="left:250px; top:695px; width:55px; height:19px; "/>
- <caption id="caption65" class="cell_1" visibility="hidden" style="left:212px; top:693px; width:35px; height:23px; vertical-align:middle; ">부도</caption>
- <button id="btn_grdsize" class="btn2_letter3" visibility="visible" style="left:245px; top:50px; width:53px; height:19px; ">
- <caption>펼치기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( btn_grdsize.attribute("text") == "펼치기"){
- group5.visible=false;
- btn_grdsize.attribute("text") = "줄이기";
- swt_acptlst.attribute("width") = parseInt(swt_acptlst.attribute("width"))+parseInt(swt_visa.attribute("width") );
- grd_acptlst.attribute("width") = parseInt(grd_acptlst.attribute("width")) + parseInt(swt_visa.attribute("width")) ;
- grd_rsrvlst.attribute("width") = parseInt(grd_rsrvlst.attribute("width")) + parseInt(swt_visa.attribute("width")) ;
- grd_cncllst.attribute("width") = parseInt(grd_cncllst.attribute("width")) + parseInt(swt_visa.attribute("width")) ;
- grd_reexlst.attribute("width") = parseInt(grd_reexlst.attribute("width")) + parseInt(swt_visa.attribute("width")) ;
- //swt_acptlst.attribute("width") = parseInt(swt_acptlst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
- //grd_acptlst.attribute("width") = parseInt(grd_acptlst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
- //grd_rsrvlst.attribute("width") = parseInt(grd_rsrvlst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
- //grd_cncllst.attribute("width") = parseInt(grd_cncllst.attribute("width")) + parseInt(swt_visa.attribute("width") ) ;
- }
- else {
- btn_grdsize.attribute("text") ="펼치기";
- swt_acptlst.attribute("width") = parseInt(swt_acptlst.attribute("width"))-parseInt(swt_visa.attribute("width") );
- grd_rsrvlst.attribute("width") = parseInt(grd_rsrvlst.attribute("width")) - parseInt(swt_visa.attribute("width") ) ;
- grd_cncllst.attribute("width") = parseInt(grd_cncllst.attribute("width")) - parseInt(swt_visa.attribute("width") );
- grd_acptlst.attribute("width") = parseInt(grd_acptlst.attribute("width")) - parseInt(swt_visa.attribute("width") ) ;
- grd_reexlst.attribute("width") = parseInt(grd_reexlst.attribute("width")) - parseInt(swt_visa.attribute("width") ) ;
- group5.visible=true;
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn_sw" group="tab" selected="true" style="left:0px; top:49px; width:60px; height:22px; ">
- <caption>접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_acpt");
- //예약이 아닐시에 사용할수 없게 만듬
- ipt_rsrvtm.disabled=true;
- btn_totrsrvdt.disabled=true;
- fGetList();
- //btn_acpt.disabled = true;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn_sw" group="tab" style="left:181px; top:50px; width:60px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_cncl");
- //예약이 아닐 시에 사용할 수 없게 만듬
- ipt_rsrvtm.disabled=true;
- btn_totrsrvdt.disabled=true;
- fGetList();
- //btn_acpt.disabled = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn_sw" group="tab" style="left:59px; top:49px; width:60px; height:22px; ">
- <caption>예약</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_rsrv");
- //예약시 컨트롤 사용가능하게
- ipt_rsrvtm.disabled=false;
- btn_totrsrvdt.disabled=false;
- fGetList();
- //btn_acpt.disabled = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <group id="group3" style="left:2px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:521px; top:8px; width:89px; height:17px; ">환자검색 :</caption>
- <button id="button6" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetList();
- ]]>
- </script>
- </button>
- <line id="line4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="srch_pid" ref="/root/send/srchpid2" class="input_search" style="left:615px; top:8px; width:100px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">건진일자 :</caption>
- <button id="button7" class="icon_search" style="left:720px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHA00600", "rgstno", srch_pid.currentText , "N", "/root/send" ,ipt_srchpid.attribute("ref"), opt_srchpnm.attribute("ref") );
- ]]>
- </script>
- </button>
- <output id="opt_srchpnm" ref="/root/send/srchpnm2" class="output_fix" style="left:740px; top:8px; width:140px; height:19px; "/>
- <caption id="caption13" class="search_name" style="left:321px; top:8px; width:86px; height:17px; ">검진구분 :</caption>
- <select1 id="combo1" ref="/root/send/srchhealexamdetlflag" class="combo_search" disabled="true" appearance="minimal" style="left:410px; top:8px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0070">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- cmb_healexamdetlflag.value= cmb_srchhealexamdetlflag.value ;
- ]]>
- </script>
- </select1>
- <input id="input2" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:92px; top:8px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:212px; top:8px; width:100px; height:19px; "/>
- <caption id="caption14" class="search_n_b" style="left:196px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption17" class="search_name" style="left:886px; top:8px; width:89px; height:17px; ">연번검색 :</caption>
- <input id="ipt_srch_visano" ref="/root/send/srchvisano" class="input_search" style="left:990px; top:8px; width:105px; height:19px; "/>
- </group>
- <group id="group5" style="left:305px; top:50px; width:885px; height:605px; ">
- <button id="btn_histlst" class="btn_sw" group="tab" style="left:185px; top:241px; width:74px; height:22px; ">
- <caption>건진이력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_hist" );
- ahafGetHistList(ipt_pid.value);
- ]]>
- </script>
- </button>
- <button id="btn_searchzipcd" class="icon_search" style="left:370px; top:183px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // ahafSetAddr(1, "/root/main/info/patinfo/item");
- ahafSetAddr(1, "/root/main/info/patinfo/item", "combination");
- ]]>
- </script>
- </button>
- <input id="opt_addr" ref="/root/main/info/patinfo/item/addr1" class="output_fix" navindex="9" imemode="hangul" style="left:391px; top:182px; width:167px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- var srcNode = ahafSetAddr(1, "/root/main/info/patinfo/item" , "combination", opt_addr.currentText );
- opt_addr.value = model.getValue(srcNode + "/addr") ;
- }
- fMoveFocus("ipt_detladdr");
- ]]>
- </script>
- </input>
- <caption id="caption93" class="search_n_b" style="left:307px; top:108px; width:12px; height:17px; font-weight:bolder; ">-</caption>
- <output id="opt_sex" ref="/root/main/info/patinfo/item/sex" class="output_fix" style="left:401px; top:131px; width:36px; height:19px; "/>
- <button id="btn_pkgdetl" class="btn_sw" group="tab" style="left:95px; top:241px; width:89px; height:22px; ">
- <caption>패키지상세</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_pkgdetl" );
- var PkgCd = model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd");
- ahafGetPkgDetlList(PkgCd);
- ]]>
- </script>
- </button>
- <select1 id="cmb_brthareacnts" ref="/root/main/info/rsrvacptinfo/item/brthareacnts" class="combo_search" navindex="8" appearance="minimal" style="left:760px; top:155px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/natiinlst/A0465">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //fMessageChk(false);
- fMoveFocus("btn_searchzipcd");
- ]]>
- </script>
- </select1>
- <caption id="cap_rsrvtm" class="cell_1" style="left:774px; top:27px; width:56px; height:23px; vertical-align:middle; ">예약시간</caption>
- <line id="line10" class="line_1" style="x1:10px; y1:23px; x2:875px; y2:23px; "/>
- <button id="button2" class="btn_sw" group="tab" style="left:10px; top:241px; width:84px; height:22px; ">
- <caption>선택패키지</caption>
- <toggle case="case_pkg" ev:event="onclick"/>
- </button>
- <caption id="caption51" class="tit_2" style="left:15px; top:29px; width:144px; height:13px; ">처방관리</caption>
- <caption id="caption52" class="tit_2" style="left:15px; top:80px; width:144px; height:13px; ">건진자 정보</caption>
- <input id="ipt_pid" ref="/root/main/info/patinfo/item/pid" class="input_essential" imemode="alpha" maxlength="10" style="left:570px; top:130px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- fInitRsrvAcptInfo();
- fGetPatInfo(2);
- fGetDetlInfoHid();
- ipt_visayear.currentText=getCurrentDate();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_visayear" ref="/root/main/info/rsrvacptinfo/item/visano" class="input_essential" maxlength="10" style="left:760px; top:130px; width:105px; height:19px; "/>
- <button id="btn_no" class="btn4_letter6" visibility="hidden" style="left:415px; top:65px; width:104px; height:22px; ">
- <caption>비자연번생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetVisano();
- ]]>
- </script>
- </button>
- <input id="ipt_rsrvtm" ref="/root/main/info/rsrvacptinfo/item/rsrvtm" class="input_default" disabled="true" format="hh:nn" style="left:832px; top:28px; width:42px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_pnm");
- ]]>
- </script>
- </input>
- <caption id="caption53" class="cell_1" style="left:180px; top:105px; width:55px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption32" class="tit_2" style="left:15px; top:7px; width:144px; height:13px; ">예약/접수정보</caption>
- <input id="ipt_engnm" ref="/root/main/info/patinfo/item/engnm" class="input_default" navindex="3" imemode="alpha" maxlength="50" _chartype="upper" text-transform="uppercase" style="left:570px; top:106px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //엔터 누를시에 대문자로 전환시켜 저장
- if( event.keyCode == 13 ){
- var a=ipt_engnm.currentText;
- a=a.toUpperCase();
- model.setValue("/root/main/info/patinfo/item/engnm",a);
- out_engnm.value = ipt_engnm.value;
- model.refresh();
- fMoveFocus("ipt_pnm");
- }
- ]]>
- </script>
- </input>
- <input id="opt_zipcd1" ref="/root/main/info/patinfo/item/zipcd11" class="output_fix" format="999" style="left:239px; top:182px; width:57px; height:19px; "/>
- <caption id="caption1" class="search_n_b" style="left:297px; top:183px; width:12px; height:17px; font-weight:bolder; ">-</caption>
- <caption id="caption33" class="cell_1" style="left:459px; top:28px; width:59px; height:23px; vertical-align:middle; ">접수일자</caption>
- <line id="line14" class="line_3" style="x1:10px; y1:50px; x2:875px; y2:50px; "/>
- <line id="line25" class="line_1" style="x1:9px; y1:96px; x2:874px; y2:96px; "/>
- <caption id="caption55" class="cell_1" style="left:180px; top:180px; width:55px; height:25px; vertical-align:middle; ">주소</caption>
- <input id="opt_zipcd2" ref="/root/main/info/patinfo/item/zipcd12" class="output_fix" format="999" style="left:309px; top:182px; width:57px; height:19px; "/>
- <input id="ipt_detladdr" ref="/root/main/info/patinfo/item/detladdr1" class="input_default" navindex="10" imemode="hangul" maxlength="100" style="left:560px; top:182px; width:305px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_patremcnts");
- ]]>
- </script>
- </input>
- <caption id="caption11" class="cell_1" style="left:180px; top:130px; width:55px; height:23px; vertical-align:middle; ">성명(한)</caption>
- <line id="line15" class="line_3" style="x1:10px; y1:210px; x2:875px; y2:210px; "/>
- <input id="ipt_rgstno1" ref="/root/main/info/patinfo/item/rgstno1" class="input_essential" navindex="1" format="999999" style="left:239px; top:106px; width:64px; height:19px; "/>
- <caption id="caption12" class="cell_1" style="left:680px; top:130px; width:74px; height:23px; vertical-align:middle; ">비자연번</caption>
- <caption id="caption46" class="cell_1" style="left:679px; top:155px; width:76px; height:23px; vertical-align:middle; ">국가</caption>
- <input id="ipt_rgstno2" ref="/root/main/info/patinfo/item/rgstno2" class="input_essential" navindex="2" format="9999999" style="left:321px; top:106px; width:69px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( (getStringLength(ipt_rgstno2.currentText) > 6) && (getStringLength(ipt_rgstno1.currentText) > 5) ){
- fInitRsrvAcptInfo();
- //주민번호로 환자 검색
- fSetBrthDD();
- //비자 연령 세팅
- //fSetBrthDDVisa();
- //외국인일 경우 나이 그냥 세팅
- //fGetPatInfoVisa(1);
- if(fGetPatInfo(1) != false)
- {
- model.setFocus("ipt_engnm");
- };
- fGetDetlInfoHid();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if( event.keyCode == 13 ){
- //fGetPatInfo(1);
- //model.setFocus("ipt_pid");
- //주민번호로 환자 검색 like~
- if( getStringLength(ipt_rgstno2.currentText) < 7 ){
- fSearchPatInfo("SMAHA00100", "rgstno","", "Y", "/root/main/info/patinfo/item", "", "", ipt_rgstno1.currentText , ipt_rgstno2.currentText);
- }
- else {
- if( getStringLength(ipt_rgstno2.currentText) > 6) fGetPatInfo(1);
- }
- fGetDetlInfoHid();
- model.setFocus("ipt_mpphon");
- }
- ]]>
- </script>
- </input>
- <caption id="caption4" class="cell_1" style="left:616px; top:27px; width:59px; height:23px; vertical-align:middle; ">예약일자</caption>
- <caption id="caption47" class="cell_1" style="left:180px; top:155px; width:55px; height:23px; vertical-align:middle; ">여권번호</caption>
- <input id="ipt_orddd" ref="/root/main/info/rsrvacptinfo/item/orddd" class="input_essential" disabled="true" inputtype="date" style="left:520px; top:28px; width:93px; height:19px; "/>
- <caption id="caption69" class="cell_1" style="left:495px; top:130px; width:70px; height:23px; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_brthdd" ref="/root/main/info/patinfo/item/brthdd" class="input_essential" visibility="hidden" inputtype="date" style="left:390px; top:0px; width:108px; height:19px; "/>
- <caption id="caption48" class="cell_1" style="left:495px; top:105px; width:70px; height:23px; vertical-align:middle; ">성명(영)</caption>
- <input id="ipt_rsrvdd" ref="/root/main/info/rsrvacptinfo/item/hopedd" class="input_essential" inputtype="date" style="left:677px; top:28px; width:93px; height:19px; "/>
- <button id="btn_selpnm" class="icon_search" style="left:394px; top:108px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitRsrvAcptInfo();
- fSearchPatInfo("SMAHA00600", "pnm", ipt_pnm.currentText , "Y", "/root/main/info/patinfo/item");
- fGetDetlInfoHid();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:10px; y1:215px; x2:875px; y2:215px; "/>
- <caption id="caption39" class="cell_1" style="left:10px; top:27px; width:55px; height:23px; vertical-align:middle; ">검진구분</caption>
- <select1 id="cmb_healexamdetlflag" ref="/root/main/info/rsrvacptinfo/item/healexamdetlflag" class="combo_default" disabled="true" appearance="minimal" style="left:67px; top:29px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/A0070">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_age" ref="/root/main/info/patinfo/item/age" class="output_fix" style="left:440px; top:131px; width:46px; height:19px; "/>
- <input id="ipt_psptno" ref="/root/main/info/patinfo/item/psptno" class="input_default" navindex="5" autonext="true" imemode="alpha" maxlength="20" _chartype="upper" style="left:239px; top:155px; width:88px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //엔터 누를시에 대문자로 전환시킴
- if( event.keyCode == 13 ){
- var b=ipt_psptno.currentText;
- b=b.toUpperCase();
- model.setValue("/root/main/info/patinfo/item/psptno",b);
- model.refresh();
- }
- fMoveFocus("ipt_telno");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(getStringLength(ipt_psptno.currentText)>19){
- model.setFocus("cmb_brthareacnts");
- }
- ]]>
- </script>
- </input>
- <button id="btn_totrsrvdt" class="btn2_letter6" disabled="false" style="left:787px; top:3px; width:86px; height:19px; ">
- <caption>예약시간선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRsrvDateTime("T", ipt_rsrvdd , ipt_rsrvtm);
- ]]>
- </script>
- </button>
- <button id="btn_savepatinfo" class="btn5_letter6" style="left:787px; top:75px; width:86px; height:19px; ">
- <caption>인적사항저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //인적사항을 인서트 한다.
- fSavePatInfo("N");
- fnSetImage();
- fGetList();
- ]]>
- </script>
- </button>
- <switch id="swt_visa" style="left:10px; top:260px; width:865px; height:240px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_pkg" selected="true" style="left:0px; top:0px; width:880px; height:448px; ">
- <caption id="cap_pkgcd" class="cell_1" style="left:5px; top:8px; width:83px; height:23px; vertical-align:middle; ">패키지</caption>
- <input id="ipt_pkgcd" ref="/root/main/info/rsrvacptinfo/item/pkgcd" class="input_essential" maxlength="12" style="left:90px; top:9px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_selpkg", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_selpkg" class="icon_search" style="left:180px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNode( "/root/temp2/addlst" );
- model.removeNode( "/root/temp/templst/list" );
- model.makeNode("/root/temp2/addlst");
-
- //model.resetInstanceNode(grd_addlst.nodeset);
- model.removeNodeSet(grd_addlst.nodeset);
- // model.makeNodeset(grd_addlst.nodeset);
- var old_pkgcd = model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd");
- var old_cmpycd = model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd");
- var old_conseq = model.getValue("/root/main/info/rsrvacptinfo/item/conseq");
- var old_conhistseq = model.getValue("/root/main/info/rsrvacptinfo/item/conhistseq");
- //var old_pkgcd = model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd");
- fGetPkgCd("SMAHA00600", "P", "N","nm" , ipt_pkgcd.currentText , cmb_healexamdetlflag.value, opt_sex.value , "/root/main/info/rsrvacptinfo/item","","pkg",ageCalc(model.getValue("/root/main/info/patinfo/item/rgstno1") , model.getValue("/root/main/info/patinfo/item/rgstno2") ), cmb_brthareacnts.value);
- // fGetPkgCd("SMAHA00600", "P", "N","nm" , ipt_pkgcd.currentText , "G02", opt_sex.value , "/root/main/info/rsrvacptinfo/item");
- // var cur_pkgcd = model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd");
- model.setValue("/root/main/info/rcptinfo/pkgamt" , model.getValue("/root/main/info/rsrvacptinfo/item/pkgamt"));
- // fTempCalc(model.getValue("/root/main/info/rsrvacptinfo/item/pkgamt"), grd_addlst , 6,7, opt_totamt, opt_pkgamt, opt_addamt );
- // model.setValue("/root/main/info/rcptinfo/pkgamt" , model.getValue("/root/main/info/rsrvacptinfo/item/pkgamt"));
- //model.setValue("/root/main/info/rcptinfo/discamt", model.getValue("/root/main/info/rsrvacptinfo/item/discamt"));
- //model.setValue("/root/temp/discamt", model.getValue("/root/main/info/rsrvacptinfo/item/discamt"));
- var count_a=model.getValue("/root/main/info/rcptinfo/pkgamt");
- //alert(count_a);
- var count_b=model.getValue("/root/main/info/rcptinfo/addamt");
- count_a = count_a == "" ? 0 : count_a;
- count_b = count_b == "" ? 0 : count_b;
- model.setValue("/root/main/sum",parseInt(count_a)+parseInt(count_b));
- fMessageChk(false);
- var cur_pkgcd = model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd");
- var cur_cmpycd = model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd");
- var cur_conseq = model.getValue("/root/main/info/rsrvacptinfo/item/conseq");
- var cur_conhistseq = model.getValue("/root/main/info/rsrvacptinfo/item/conhistseq");
- //같은 패키지 이거나 같은 계약정보일경우 return
-
- if( (cur_cmpycd != "") && (cur_conseq != "") && (cur_conhistseq != "") ) {
- model.setValue("/root/main/info/rsrvacptinfo/item/cmpyflag", "Y");
- model.makeValue("/root/main/info/rsrvacptinfo/item/rsrvflag", "02");
- model.makeValue("/root/main/info/rsrvacptinfo/item/pkguncocd", "V02");
-
- }else{
- model.setValue("/root/main/info/rsrvacptinfo/item/cmpyflag", "N");
- model.makeValue("/root/main/info/rsrvacptinfo/item/rsrvflag", "01");
- model.makeValue("/root/main/info/rsrvacptinfo/item/pkguncocd", "V01");
- }
- var acpt_remcnts = model.getValue("/root/main/info/rsrvacptinfo/item/pkgremcnts") ;
- model.setValue( tar_remcnts.attribute("ref") , acpt_remcnts);
-
- var cur_pkgnm = opt_pkgnm.value;
- //패키지 상세내역 조회
- fGetConAddList(cur_pkgcd, cur_pkgnm, opt_sex.value, cur_cmpycd, cur_conseq , cur_conhistseq);
- // 2008-06-12 이성인 model.refresh(); 주석처리 및 이벤트 끝으로 이동
- //model.refresh();
- // fTempCalc(model.getValue("/root/main/info/rsrvacptinfo/item/pkgamt"), grd_addlst , 6,7, opt_subtotamt, opt_pkgamt, opt_addamt );
- //패키지금액 , 선수금 , 추가검사, 할인금액,소계금액 , 미수금액 , 청구방법 , 수납액
- /* model.setValue("/root/main/info/rcptinfo/pkgamt" , model.getValue("/root/main/info/rsrvacptinfo/item/pkgamt"));
- model.setValue("/root/main/info/rcptinfo/discamt", model.getValue("/root/main/info/rsrvacptinfo/item/discamt"));
- model.setValue("/root/temp/discamt", model.getValue("/root/main/info/rsrvacptinfo/item/discamt"));
- */
- if(old_pkgcd != "" && old_pkgcd != cur_pkgcd || old_cmpycd != old_cmpycd && old_conseq != cur_conseq && old_conhistseq != cur_conhistseq){
- fSetAddList(grd_addlst, 3, "/root/temp/templst/list", "Y","", model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd"));
- }
- fDcAmtCalc();
- // btn_acpt.disabled = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_pkgnm" ref="/root/main/info/rsrvacptinfo/item/pkgnm" class="output_fix" style="left:201px; top:9px; width:329px; height:19px; "/>
- <line id="line44" class="line_1" style="x1:5px; y1:3px; x2:862px; y2:3px; "/>
- <line id="line43" class="line_2" style="x1:5px; y1:31px; x2:857px; y2:31px; "/>
- <caption id="caption92" class="cell_1" style="left:5px; top:33px; width:83px; height:23px; vertical-align:middle; ">최근건진내역</caption>
- <output id="opt_latestpkginfo" ref="/root/main/info/rsrvacptinfo/item/latestpkginfo" class="output_fix" style="left:90px; top:34px; width:450px; height:19px; "/>
- <datagrid id="grd_addlst" nodeset="/root/main/info/rsrvacptinfo/addlst" caption="선택^검사구분^검사코드^검사명^청구방법^가격^횟수^할인액^검사일련번호^수가코드^처방번호^처방일자^처방구분^묶음검사구분^addtotamt" colsep="^" colwidth="33, 62, 100, 293, 93, 138, 95, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:60px; width:855px; height:175px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="testflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/testflag/A0117">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="testcd" type="inputbutton"/>
- <col ref="testnm"/>
- <col ref="uncocd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/pamcdlst/uncocdlst">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="scoreamt" visibility="visible" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="prcptims" type="input"/>
- <col ref="discamt" format="(-,+)#,###"/>
- <col ref="examseq"/>
- <col ref="calcscorcd"/>
- <col ref="prcpno"/>
- <col ref="prcpdd"/>
- <col ref="m"/>
- <col ref="grupflag"/>
- <col ref="addtotamt" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( (grd_addlst.col == 3 ) && (event.keyCode == 13 )) {
- fSelPkgAdd("A" , grd_addlst.labelMatrix( grd_addlst.row , 3) );
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_addlst.col == grd_addlst.colRef("uncocd")) {
- fSetAddAmt();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button3" class="btn2_letter3" visibility="hidden" style="left:744px; top:34px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_addlst.addRow();
- grd_addlst.col = 3;
- grd_addlst.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_grup" class="btn2_letter4" visibility="hidden" style="left:610px; top:34px; width:64px; height:19px; ">
- <caption>묶음처방</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPkgCd("SMAHA00600", "X", "Y","nm" , "" , cmb_healexamdetlflag.value, opt_sex.value, "/root/temp/templst");
- fSetAddList(grd_addlst, 3, "/root/temp/templst/list", "Y");
- fTempCalc(model.getValue("/root/main/info/rsrvacptinfo/item/pkgamt"), grd_addlst , 6,7, opt_totamt, opt_pkgamt , opt_addamt );
- var count_a=model.getValue("/root/main/info/rcptinfo/pkgamt");
- //alert(count_a);
- var count_b=model.getValue("/root/main/info/rcptinfo/addamt");
- model.setValue("/root/main/sum",parseInt(count_a)+parseInt(count_b));
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter3" visibility="hidden" style="left:800px; top:34px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue(grd_addlst.nodeset + "[" + grd_addlst.row + "]/m", "d");
- grd_addlst.addStatus(grd_addlst.row, "delete");
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter4" style="left:730px; top:34px; width:64px; height:19px; ">
- <caption>추가검사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPkgCd("SMAHA00600", "A", "Y","nm" , "" , cmb_healexamdetlflag.value, opt_sex.value, "/root/temp/templst");
- fSetAddList(grd_addlst, 3, "/root/temp/templst/list", "Y","", model.getValue("/root/main/info/rsrvacptinfo/item/pkgcd"));
- // fTempCalc(model.getValue("/root/main/info/rsrvacptinfo/item/pkgamt"), grd_addlst , 6,7, opt_totamt, opt_pkgamt , opt_addamt );
- var count_a=model.getValue("/root/main/info/rcptinfo/pkgamt");
- var count_b=model.getValue("/root/main/info/rcptinfo/addamt");
- count_a = count_a == "" ? 0 : count_a;
- count_b = count_b == "" ? 0 : count_b;
- model.setValue("/root/main/sum",parseInt(count_a)+parseInt(count_b));
- fDcAmtCalc();
- ]]>
- </script>
- </button>
- <button id="btn_ordmgt" class="btn2_letter4" visibility="visible" style="left:797px; top:34px; width:64px; height:19px; ">
- <caption>처방관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter ("SMAHA00700_PARAM1" , model.getValue( cmb_healexamdetlflag.attribute("ref")) );
- setParameter ("SMAHA00700_PARAM2" , model.getValue( ipt_pid.attribute("ref")) );
- modal("SMAHA04050");
- ]]>
- </script>
- </button>
- <caption id="caption15" class="cell_1" style="left:534px; top:8px; width:48px; height:23px; vertical-align:middle; ">사업장</caption>
- <input id="ipt_cmpycd" ref="/root/main/info/rsrvacptinfo/item/cmpycd" style="left:585px; top:9px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("button14", "DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd") != "") {
- model.setValue("/root/main/info/rsrvacptinfo/item/pkguncocd" , "V02");
- }else {
- model.setValue("/root/main/info/rsrvacptinfo/item/pkguncocd" , "V01");
- model.setValue("/root/main/info/rsrvacptinfo/item/cmpynm" , "");
- }
- fSetAddAmt();
- ]]>
- </script>
- </input>
- <button id="button14" class="icon_search" style="left:670px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComnCd("SMAHA01500", "09" , "cd", ipt_cmpycd.currentText ,ipt_cmpycd.attribute("ref"), opt_cmpynm.attribute("ref"));
- if(model.getValue("/root/main/info/rsrvacptinfo/item/cmpycd") != "") {
- model.setValue("/root/main/info/rsrvacptinfo/item/pkguncocd" , "V02");
- fSetAddAmt();
- }
- ipt_cmpycd.refresh();
- opt_cmpynm.refresh();
-
- ]]>
- </script>
- </button>
- <output id="opt_cmpynm" ref="/root/main/info/rsrvacptinfo/item/cmpynm" class="output_fix" style="left:690px; top:9px; width:169px; height:19px; "/>
- </case>
- <case id="case_hist">
- <datagrid id="grd_hist" nodeset="/root/main/info/histlst/item" caption="신검일자^패키지코드^패키지명^비자연번^접수상태^특이사항^취소일" colsep="^" colwidth="78, 99, 261, 100, 77, 116, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:853px; height:185px; ">
- <col ref="orddd"/>
- <col ref="pkgcd"/>
- <col ref="pkgnm"/>
- <col ref="visano"/>
- <col disabled="true" ref="statflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="remcnts"/>
- <col ref="cncldd" format="yyyy-mm-dd" style="text-align:center; "/>
- </datagrid>
- </case>
- <case id="case_cur">
- <datagrid id="grd_curlst" nodeset="/root/main/info/curlst/item" caption="예약일자^예약시간^접수일자^검사코드^검사명^검사실^상태" colsep="^" colwidth="78, 76, 99, 92, 249, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:853px; height:185px; ">
- <col ref="hopedd"/>
- <col ref="rsrvtm"/>
- <col ref="orddd"/>
- <col ref="testcd"/>
- <col ref="testnm"/>
- <col ref="testroomcd" type="combo"/>
- <col ref="statflag"/>
- </datagrid>
- </case>
- <case id="case_pkgdetl">
- <datagrid id="grd_pkgdetl" nodeset="/root/main/info/pkgdetl/item" caption="검진코드^검진구분^검사분류^검사명^참고치^패키지분류^최종수정자^최종수정일시" colsep="^" colwidth="35, 110, 135, 193, 162, 100" mergecells="byrowrec" mergecellsfixedrows="bycolrec" multitotal="true" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:853px; height:185px; ">
- <col disabled="false" ref="pkgcd" visibility="hidden"/>
- <col ref="cdnm"/>
- <col ref="spcnm"/>
- <col ref="testnm"/>
- <col ref="stndval"/>
- <col disabled="true" ref="padd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <datagrid id="grd_pkglst" nodeset="/root/main/info/rsrvacptinfo/pkglst" visibility="hidden" caption="선택^검사구분^검사코드^검사명^청구방법^가격" colsep="^" colwidth="33, 50, 100, 293, 160, 143" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:45px; top:375px; width:270px; height:65px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="pkgflag" visibility="hidden"/>
- <col ref="pkgcd" type="inputbutton"/>
- <col ref="testnm"/>
- <col ref="uncocd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/pamcdlst/uncocdlst">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="manamt" visibility="visible"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if( grd_addlst.col == 3 ){
- fSelPkgAdd("A" , grd_addlst.labelMatrix( grd_addlst.row , 3) );
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_msgmng" visibility="hidden" style="left:320px; top:330px; width:460px; height:105px; ">
- <caption id="caption70" class="cell_1" style="left:5px; top:33px; width:36px; height:19px; vertical-align:middle; ">국가</caption>
- <select1 id="combo5" ref="/root/temp/item/brthareacnts" class="combo_search" appearance="minimal" style="left:43px; top:33px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/natiinlst/A0465">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption71" class="cell_1" style="left:138px; top:33px; width:36px; height:19px; vertical-align:middle; ">성별</caption>
- <select1 id="rdo_sex" ref="/root/temp/item/sex" appearance="full" cols="4" rows="1" overflow="visible" style="left:176px; top:33px; width:90px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>남자</label>
- <value>M</value>
- </item>
- <item>
- <label>여자</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <caption id="caption72" class="cell_1" style="left:269px; top:33px; width:36px; height:19px; vertical-align:middle; ">나이</caption>
- <input id="ipt_fromage" ref="/root/temp/item/fromage" class="input_default" format="999999" style="left:307px; top:33px; width:64px; height:19px; "/>
- <caption id="caption73" class="search_n_b" style="left:375px; top:33px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_toage" ref="/root/temp/item/toage" class="input_default" format="9999999" style="left:390px; top:33px; width:69px; height:19px; "/>
- <caption id="caption74" class="cell_1" style="left:5px; top:55px; width:36px; height:19px; vertical-align:middle; ">내용</caption>
- <textarea id="ipt_msgcnts" ref="/root/temp/item/msgcnts" imemode="hangul" maxlength="250" appearance="textarea" style="left:43px; top:55px; width:415px; height:19px; "/>
- <button id="button30" class="btn2_letter2" style="left:415px; top:5px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_msgmng.visible = false;
- ]]>
- </script>
- </button>
- <line id="line24" class="line_1" style="x1:5px; y1:30px; x2:457px; y2:29px; "/>
- <caption id="caption21" ref="/root/temp/temprslt/temptestnm" class="tit_2" style="left:5px; top:10px; width:305px; height:13px; ">국가별 메시지관리</caption>
- <button id="button31" class="btn4_letter2" style="left:400px; top:80px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption91" class="cell_1" style="left:335px; top:130px; width:63px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <input id="ipt_pnm" ref="/root/main/info/patinfo/item/hngnm" class="input_default" navindex="4" imemode="hangul" maxlength="50" style="left:239px; top:131px; width:88px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_psptno");
- ]]>
- </script>
- </input>
- <button id="button10" class="btn5_letter6" visibility="hidden" style="left:695px; top:75px; width:86px; height:19px; ">
- <caption>인적사항수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //인적사항을 업데이트 한다.
- fSavePatInfo("N");
- ]]>
- </script>
- </button>
- <button id="button32" class="btn2_letter5" visibility="hidden" style="left:615px; top:75px; width:75px; height:19px; ">
- <caption>메시지관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_msgmng.visible = true;
- ]]>
- </script>
- </button>
- <caption id="caption25" class="tit_2" style="left:15px; top:226px; width:144px; height:13px; ">건진 정보</caption>
- <output id="out_engnm" ref="/root/main/info/patinfo/item/engnm" appearance="output" style="left:105px; top:75px; width:295px; height:19px; "/>
- <input id="ipt_mpphon" ref="/root/main/info/patinfo/item/mpphon" class="input_default" navindex="7" imemode="alpha" maxlength="30" style="left:570px; top:155px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("cmb_brthareacnts");
- ]]>
- </script>
- </input>
- <input id="ipt_telno" ref="/root/main/info/patinfo/item/telno" class="input_default" navindex="6" imemode="alpha" maxlength="30" style="left:400px; top:155px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fMoveFocus("ipt_mpphon");
- ]]>
- </script>
- </input>
- <caption id="caption45" class="cell_1" style="left:495px; top:155px; width:70px; height:23px; vertical-align:middle; ">휴대폰</caption>
- <caption id="caption49" class="cell_1" style="left:334px; top:155px; width:66px; height:23px; vertical-align:middle; ">연락처</caption>
- <input id="input1" ref="/root/main/info/patinfo/item/engnm2" class="input_default" navindex="3" imemode="alpha" maxlength="50" _chartype="upper" text-transform="uppercase" style="left:760px; top:105px; width:105px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- //엔터 누를시에 대문자로 전환시켜 저장
- if( event.keyCode == 13 ){
- var a=ipt_engnm.currentText;
- a=a.toUpperCase();
- model.setValue("/root/main/info/patinfo/item/engnm",a);
- out_engnm.value = ipt_engnm.value;
- model.refresh();
- fMoveFocus("ipt_pnm");
- }
- ]]>
- </script>
- </input>
- <caption id="caption18" class="cell_1" style="left:680px; top:105px; width:73px; height:23px; vertical-align:middle; ">성명2(영)</caption>
- <select1 id="rdo_visaflag" ref="/root/main/info/rsrvacptinfo/item/visaflag" appearance="full" cols="4" rows="1" overflow="visible" style="left:220px; top:29px; width:89px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>이민</label>
- <value>M</value>
- </item>
- <item>
- <label>유학</label>
- <value>S</value>
- </item>
- </choices>
- </select1>
- <caption id="caption50" class="cell_1" style="left:157px; top:27px; width:58px; height:23px; vertical-align:middle; ">비자구분</caption>
- <caption id="caption2" class="tit_2" style="left:10px; top:510px; width:144px; height:13px; ">추가정보</caption>
- <line id="line1" class="line_1" style="x1:11px; y1:528px; x2:876px; y2:528px; "/>
- <select1 id="rdo_healexamplacecd" ref="/root/init/place/healexamplacecd" appearance="full" cols="2" overflow="visible" style="left:615px; top:3px; width:165px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var healexamplacecd = model.getValue("/root/main/info/rsrvacptinfo/item/healexamplacecd");
- var statFlag = model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
- if(statFlag < 'C') {
- model.setValue( "/root/main/info/rsrvacptinfo/item/healexamplacecd", rdo_healexamplacecd.value);
- }else {
- model.setValue( "/root/main/info/rsrvacptinfo/item/healexamplacecd", healexamplacecd == "" ? rdo_healexamplacecd.value:healexamplacecd);
- }
- cmb_place.refresh();
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_place" ref="/root/main/info/rsrvacptinfo/item/healexamplacecd" class="combo_essential" disabled="true" appearance="minimal" style="left:374px; top:29px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:313px; top:27px; width:59px; height:23px; vertical-align:middle; ">건진장소</caption>
- <button id="btn_tag" class="btn2_letter4" visibility="hidden" style="left:620px; top:55px; width:64px; height:19px; ">
- <caption>태그지급</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var suppStat = model.getValue("/root/tag/taginfo/tagstat");
- var tagno = model.getValue("/root/main/info/taginfo/tagno");
- var statFlag = model.getValue("/root/main/info/rsrvacptinfo/item/statflag");
- var healexamplacecd = model.getValue("/root/main/info/rsrvacptinfo/item/healexamplacecd");
-
- if(suppStat == "") {
- suppStat = model.getValue("/root/main/info/taginfo/suppstat");
- }
-
- if("0" == suppStat) {
- if(6 == messageBox("[" + tagno + "]태그 반납을", "Q004")) {
- model.makeValue("/root/send/taginfo/tagflag" ,"R");
- model.makeValue("/root/send/taginfo/tagno" ,model.getValue("/root/main/info/taginfo/tagno") );
- model.makeValue("/root/send/taginfo/healexamplacecd" ,model.getValue("/root/main/info/taginfo/healexamplacecd") );
- model.makeValue("/root/send/taginfo/instcd" ,getUserInfo("dutplceinstcd") );
- if(submit("TXAHA00109")) {
- btn_tag.attribute("text") = "태그지급";
- ipt_tagno.value = "";
- ipt_tagno.disabled = false;
- }
- }
- }else {
- if(statFlag < "E") {
- messageBox("접수 전에 태그를 지급", "E001");
- return;
- }
- if(tagno == "") {
- messageBox("태그번호를","C001");
- return;
- }
- if(messageBox("["+tagno+"]태그 지급을","Q004")) {
- model.makeValue("/root/send/taginfo/tagflag" ,"P");
- model.makeValue("/root/send/taginfo/rsrvdd" ,model.getValue("/root/main/info/rsrvacptinfo/item/rsrvdd"));
- model.makeValue("/root/send/taginfo/rsrvno" ,model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno"));
- model.makeValue("/root/send/taginfo/pid" ,model.getValue("/root/main/info/rsrvacptinfo/item/pid"));
- model.makeValue("/root/send/taginfo/orddd" ,model.getValue("/root/main/info/rsrvacptinfo/item/orddd"));
- model.makeValue("/root/send/taginfo/healexamdetlflag" ,model.getValue("/root/main/info/rsrvacptinfo/item/healexamdetlflag"));
- model.makeValue("/root/send/taginfo/tagno" ,model.getValue("/root/main/info/taginfo/tagno"));
- model.makeValue("/root/send/taginfo/instcd" ,getUserInfo("posinstcd") );
- if(submit("TXAHA00109")) {
- btn_tag.attribute("text") = "태그반납";
- ipt_tagno.disabled = true;
- }
- }
- }
- ipt_tagno.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_pkguncocd" ref="/root/main/info/rsrvacptinfo/item/pkguncocd" class="combo_default" visibility="hidden" appearance="minimal" style="left:623px; top:234px; width:235px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/pamcdlst/uncocdlst">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var cnt = grd_addlst.rows ;
- var i = 0;
- var uncocd = "";
- for( i = 1; i < cnt ; i++){
- uncocd = grd_addlst.valueMatrix(i, 5);
- if( ( uncocd == "") || (uncocd == "-" ) ){
- grd_addlst.valueMatrix(i, 5) = cmb_pkguncocd.value ;
- }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="cell_1" visibility="hidden" style="left:543px; top:233px; width:79px; height:23px; vertical-align:middle; ">청구방법</caption>
- </group>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="5242880" validate="true" ref="/root/send/visaphotpath/attach/file" style="left:200px; top:175px; width:100px; height:20px; "/>
- <button id="btn_addfile" class="btn2_letter4" style="left:1025px; top:125px; width:64px; height:19px; ">
- <caption>사진등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var maxsize = upload1.attribute("filesize");
-
- files = window.fileDialog("open", "|", true);
- // alert(files + files.split("|"));
-
- model.setValue("/root/send/attach/file", files);
- //alert(files);
- if (!checkFileSize(upload1)){
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <img id="img_visaphot" ref="/root/image/attachfile/image" style="left:330px; top:155px; width:135px; height:100px; background-stretch:stretch; border-color:#000000; border-style:solid; cursor:hand; ">
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(img_visaphot.currentStyle.width == 640)
- {
- img_visaphot.attribute("width") = 135;
- img_visaphot.attribute("height") = 100;
- }
- else
- {
- img_visaphot.attribute("width") = 640;
- img_visaphot.attribute("height") = 480;
- }
- ]]>
- </script>
- </img>
- <textarea id="tar_remcnts" ref="/root/main/info/rsrvacptinfo/item/remcnts" maxlength="500" style="left:375px; top:585px; width:810px; height:45px; "/>
- <caption id="caption23" class="cell_1" style="left:317px; top:585px; width:55px; height:47px; vertical-align:middle; ">전달사항</caption>
- <button id="button9" class="btn5_letter6" style="left:1100px; top:555px; width:86px; height:19px; ">
- <caption>전달사항저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/info/rsrvacptinfo/item/rsrvno") == "")
- {
- messageBox("예약(접수)이후에만 특이사항을 별도로 저장하실수 있습니다.", "I");
- return false;
- }
- model.makeNode("/root/sendcmts");
- model.makeNode("/root/sendcmts/healexamdetlflag");
- model.makeNode("/root/sendcmts/rsrvdd");
- model.makeNode("/root/sendcmts/rsrvno");
- model.makeNode("/root/sendcmts/cmts");
-
- model.setValue("/root/sendcmts/healexamdetlflag", model.getValue("/root/send/srchhealexamdetlflag"));
- model.setValue("/root/sendcmts/rsrvdd", model.getValue("/root/send/srchrsrvdd"));
- model.setValue("/root/sendcmts/rsrvno", model.getValue("/root/send/srchrsrvno"));
- model.setValue("/root/sendcmts/cmts", model.getValue("/root/main/info/rsrvacptinfo/item/remcnts"));
- submit("TXAHA04029");
- ]]>
- </script>
- </button>
- <output id="output4" ref="/root/main/info/rcptinfo/cmpyaddamt" class="output_fix" format="#,###" style="left:490px; top:690px; width:86px; height:19px; text-align:right; "/>
- <line id="line52" class="line_3" style="x1:313px; y1:737px; x2:1183px; y2:737px; "/>
- <caption id="cap_pkguncocd" class="cell_1" style="left:831px; top:664px; width:64px; height:23px; vertical-align:middle; ">
- <![CDATA[청구방법]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fPriceCheck();
- ]]>
- </script>
- </caption>
- <line id="line42" class="line_2" style="x1:313px; y1:712px; x2:898px; y2:712px; "/>
- <output id="opt_discamt" ref="/root/main/info/rcptinfo/discamt" class="output_fix" visibility="visible" format="#,###" style="left:647px; top:690px; width:181px; height:19px; text-align:right; "/>
- <caption id="caption84" class="cell_1" visibility="visible" style="left:831px; top:689px; width:64px; height:48px; vertical-align:middle; ">실수납액</caption>
- <output id="opt_realamt" ref="/root/main/info/rcptinfo/realamt" class="font_pid" visibility="visible" format="(-,+)#,###" style="left:897px; top:672px; width:291px; height:65px; text-align:right; vertical-align:bottom; "/>
- <caption id="caption76" class="cell_1" visibility="visible" style="left:580px; top:689px; width:64px; height:23px; vertical-align:middle; ">할인금액</caption>
- <line id="line46" class="line_2" style="x1:313px; y1:687px; x2:895px; y2:687px; "/>
- <caption id="caption54" class="cell_1" visibility="visible" style="left:313px; top:714px; width:79px; height:23px; vertical-align:middle; ">소계</caption>
- <output id="opt_preamt" ref="/root/main/info/rcptinfo/preamt" class="output_fix" visibility="visible" format="#,###" style="left:1082px; top:665px; width:101px; height:19px; font-weight:bold; text-align:right; "/>
- <select1 id="combo2" ref="/root/main/info/rsrvacptinfo/item/pkguncocd" class="combo_default" disabled="true" appearance="minimal" style="left:897px; top:664px; width:116px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/pamcdlst/uncocdlst">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
-
- var cnt = grd_addlst.rows ;
- var i = 0;
- var uncocd = "";
- for( i = 1; i < cnt ; i++){
- uncocd = grd_addlst.valueMatrix(i, 5);
- if( ( uncocd == "") || (uncocd == "-" ) ){
- grd_addlst.valueMatrix(i, 5) = cmb_pkguncocd.value ;
- }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_ownbamt" ref="/root/main/info/rcptinfo/ownbamt" class="input_default" disabled="true" format="(-,+)#,###" style="left:647px; top:665px; width:181px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
-
- var tempamt = parseInt(model.getValue("/root/main/info/rcptinfo/tempamt")); // 부담금 + 미수금
-
- var ownbamt = parseInt(ipt_ownbamt.currentText.replace(/,/g,"")); // 부담금
- var uncoamt = tempamt - ownbamt;
-
-
- // 변경 미수금,부담금,변경여부
- model.makeValue("/root/temp/priceamt/priceamt/chngownbamt", ownbamt);
- model.makeValue("/root/main/info/rcptinfo/ownbamt", ownbamt);
- model.makeValue("/root/send/ownbamt", ownbamt);
- model.makeValue("/root/temp/priceamt/priceamt/chnguncoamt", uncoamt);
- model.makeValue("/root/temp/priceamt/priceamt/chngyn", "Y");
-
- fSetAddAmt();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var tempamt = parseInt(model.getValue("/root/main/info/rcptinfo/tempamt"));
-
- var uncoamt = parseInt(ipt_ownbamt.currentText.replace(/,/i,""));
-
- //alert("tempamt : " + tempamt + "uncoamt" + uncoamt);
- model.makeValue("/root/main/info/rcptinfo/uncoamt" , tempamt - uncoamt);
- opt_uncoamt.refresh();
- ]]>
- </script>
- </input>
- <line id="line26" class="line_1" style="x1:313px; y1:658px; x2:1183px; y2:658px; "/>
- <caption id="caption56" class="cell_1" visibility="visible" style="left:580px; top:714px; width:64px; height:23px; vertical-align:middle; ">미수금</caption>
- <output id="opt_subtotamt" ref="/root/main/info/rcptinfo/subtotamt" class="output_fix" visibility="visible" format="#,###" style="left:395px; top:715px; width:181px; height:19px; text-align:right; "/>
- <caption id="caption24" class="cell_1" style="left:313px; top:689px; width:79px; height:23px; vertical-align:middle; ">추가검사금액</caption>
- <caption id="caption26" class="cell_1" style="left:580px; top:665px; width:64px; height:23px; vertical-align:middle; ">
- <![CDATA[부담액]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fPriceCheck();
- ]]>
- </script>
- </caption>
- <caption id="caption59" class="cell_1" visibility="visible" style="left:1015px; top:664px; width:64px; height:23px; vertical-align:middle; ">선수금</caption>
- <caption id="cap_rcpt" class="tit_2" style="left:313px; top:643px; width:79px; height:13px; ">수납내역</caption>
- <output id="output1" ref="/root/main/info/rcptinfo/psnaddamt" class="output_fix" format="#,###" style="left:395px; top:690px; width:91px; height:19px; text-align:right; "/>
- <line id="line5" class="line_3" style="x1:313px; y1:639px; x2:1183px; y2:639px; "/>
- <caption id="caption19" class="cell_1" style="left:313px; top:664px; width:79px; height:23px; vertical-align:middle; ">패키지금액</caption>
- <output id="opt_uncoamt" ref="/root/main/info/rcptinfo/uncoamt" class="output_fix" visibility="visible" format="(-)#,###" style="left:647px; top:715px; width:181px; height:19px; text-align:right; "/>
- <output id="output3" ref="/root/main/info/rcptinfo/pkgamt" class="output_fix" format="#,###" style="left:395px; top:665px; width:181px; height:19px; text-align:right; "/>
- <switch id="swt_acptlst" style="left:0px; top:70px; width:305px; height:640px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_acpt" selected="true">
- <datagrid id="grd_acptlst" nodeset="/root/main/list/acptlst" allowselection="true" caption="접수일자^등록번호^비자연번^영문이름^한글이름^국가^코드^유형^주민번호^주민번호^나이^성별^나이/성별^수납상태^rsrvdd^rsrvno^statflag^acptflag^cmpynm^acptdttm^lastupdtrid^lastupdtdt" colsep="^" colwidth="71, 70, 67, 146, 85, 70, 97, 188, 68, 74, 40, 40, 30, 60, 30, 30, 30, 30, 30, 30, 30, 30" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="above" style="left:5px; top:6px; width:292px; height:624px; ">
- <col ref="hopedd" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="visano"/>
- <col ref="engnm"/>
- <col ref="pnm" style="left:236px; top:23px; width:100px; height:23px; "/>
- <col ref="brthareacnts" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/natiinlst/A0465">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pkgcd"/>
- <col ref="pkgnm"/>
- <col ref="rgstno1"/>
- <col ref="rgstno2" style="left:773px; top:23px; width:74px; height:23px; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="sexage" visibility="hidden"/>
- <col ref="rcptstat" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/rsltlst/P0049">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="statflag" visibility="hidden"/>
- <col ref="acptflag" visibility="hidden"/>
- <col ref="cmpynm" visibility="hidden"/>
- <col ref="acptdttm" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- ahafGetRsrvAcptDetlVisa(3);
- fDcAmtCalc();
- model.refresh()
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_acptlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_rsrv">
- <datagrid id="grd_rsrvlst" nodeset="/root/main/list/rsrvlst" caption="예약일자^등록번호^영문이름^한글이름^국가^코드^유형^주민번호^주민번호^나이^성별^나이/성별^상태^rsrvdd^rsrvno^rcptstat^visano^totamt^cmpynm^rsrvdttm^lastupdtrid^lastupdtdt" colsep="^" colwidth="75, 70, 64, 88, 60, 100, 65, 68, 74, 40, 40, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:291px; height:625px; ">
- <col ref="hopedd" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="engnm"/>
- <col ref="pnm"/>
- <col ref="brthareacnts" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/natiinlst/A0465">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pkgcd"/>
- <col ref="pkgnm"/>
- <col ref="rgstno1"/>
- <col ref="rgstno2" style="left:634px; top:23px; width:74px; height:23px; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="sexage" visibility="hidden"/>
- <col disabled="true" ref="statflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="rcptstat" visibility="hidden"/>
- <col ref="visano" visibility="hidden"/>
- <col ref="totamt" visibility="hidden"/>
- <col ref="cmpynm" visibility="hidden"/>
- <col ref="rsrvdttm" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- ahafGetRsrvAcptDetlVisa(1);
- fDcAmtCalc();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- grid_oncopy();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rsrvlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_cncl">
- <group id="group4" style="left:0px; top:3px; width:295px; height:37px; vertical-align:top; ">
- <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:1px; width:288px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption16" class="search_name" style="left:11px; top:8px; width:86px; height:17px; ">구분 :</caption>
- <select1 id="rdo_cnclmode" ref="/root/init/srchmode" appearance="full" cols="4" rows="1" overflow="visible" style="left:71px; top:8px; width:188px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>4</value>
- </item>
- <item>
- <label>예약취소</label>
- <value>5</value>
- </item>
- <item>
- <label>접수취소</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fGetList();
- ]]>
- </script>
- </select1>
- </group>
- <datagrid id="grd_cncllst" nodeset="/root/main/list/cncllst" caption="취소일시^등록번호^영문이름^국가^코드^유형^주민번호^주민번호^나이^성별^나이/성별^rsrvdd^rsrvno^statflag^rcptstat^visano^pnm^cmpynm^cncldttm^lastupdtrid^lastupdtdt" colsep="^" colwidth="72, 70, 84, 137, 100, 65, 68, 74, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:45px; width:292px; height:585px; ">
- <col ref="cncldd" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="engnm"/>
- <col ref="brthareacnts" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/natiinlst/A0465">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pkgcd"/>
- <col ref="pkgnm"/>
- <col ref="rgstno1"/>
- <col ref="rgstno2"/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="sexage" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="statflag" visibility="hidden"/>
- <col ref="rcptstat" visibility="hidden"/>
- <col ref="visano" visibility="hidden"/>
- <col ref="pnm" visibility="hidden"/>
- <col ref="cmpynm" visibility="hidden"/>
- <col ref="cncldttm" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- ahafGetRsrvAcptDetlVisa(4);
- fDcAmtCalc();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cncllst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_reex">
- <datagrid id="grd_reexlst" nodeset="/root/main/list/reexlst" visibility="visible" allowselection="true" caption="접수일자^등록번호^비자연번^영문이름^한글이름^국가^코드^유형^주민번호^주민번호^나이^성별^나이/성별^수납상태^rsrvdd^rsrvno^statflag^acptflag^cmpynm^acptdttm^lastupdtrid^lastupdtdt" colsep="^" colwidth="71, 70, 67, 146, 85, 70, 97, 188, 68, 74, 30, 30, 30, 68, 30, 30, 30, 30, 30, 30, 30, 30" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="above" style="left:5px; top:6px; width:292px; height:624px; ">
- <col ref="hopedd" format="yyyy-mm-dd"/>
- <col ref="pid"/>
- <col ref="visano"/>
- <col ref="engnm"/>
- <col ref="pnm"/>
- <col ref="brthareacnts" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/natiinlst/A0465">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pkgcd"/>
- <col ref="pkgnm"/>
- <col ref="rgstno1"/>
- <col ref="rgstno2" style="left:634px; top:23px; width:74px; height:23px; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="sexage" visibility="hidden"/>
- <col disabled="true" ref="statflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="rcptstat" visibility="hidden"/>
- <col ref="totamt" visibility="hidden"/>
- <col ref="cmpynm" visibility="hidden"/>
- <col ref="rsrvdttm" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- ahafGetRsrvAcptDetlVisa(8);
- fDcAmtCalc();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- grid_oncopy();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rsrvlst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_reex" class="btn_sw" group="tab" style="left:120px; top:49px; width:60px; height:22px; ">
- <caption>재검</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_reex");
- //예약시 컨트롤 사용가능하게
- ipt_rsrvtm.disabled=false;
- btn_totrsrvdt.disabled=false;
- fGetList();
- //btn_acpt.disabled = false;
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|